14 #ifndef FUEL_CELL__DAE_WRAPPER__H
15 #define FUEL_CELL__DAE_WRAPPER__H
23 #include <boost/shared_ptr.hpp>
27 #include <deal.II/base/parameter_handler.h>
32 #include <integration.h>
48 #define omp_get_thread_num() 0
52 using namespace dealii;
53 using namespace alglib;
57 namespace ApplicationCore
99 double integrate(
double lb,
double ub, std::vector<double>& W, std::vector<double>&
F);
111 virtual void setup_DAE_solver () = 0;
120 virtual void fsub (
double &,
double [],
double [],
double []) = 0;
130 virtual void dfsub (
double &,
double [],
double [],
double []) = 0;
138 virtual void gsub (
int &,
double [],
double &) = 0;
145 virtual void dgsub (
int &,
double [],
double []) = 0;
153 virtual void guess (
double &,
double [],
double [],
double []) = 0;
164 void DAE_Error(
int flag);
~DAEWrapper()
Destructor.
Definition: DAE_wrapper.h:90
void verbosity(int i)
Set the verbosity variable (controls output to screen)
Definition: DAE_wrapper.h:156
void * ptr_DAE_object[20]
double F()
Faraday constant, .
Definition: fcst_constants.h:37
#define omp_get_thread_num()
Definition: DAE_wrapper.h:48
int * mm
array of integers storing the order of each PDE
Definition: DAE_wrapper.h:202
double cm3_to_m3
Convert from centimetres cubed to metres cubed.
Definition: DAE_wrapper.h:235
double * fixpnt
Array of fixed points on the mesh.
Definition: DAE_wrapper.h:222
double * tol
Definition: DAE_wrapper.h:226
int n_comp
number of PDEs
Definition: DAE_wrapper.h:196
int n_output
Output integer variable.
Definition: DAE_wrapper.h:193
FuelCell::ApplicationCore::DAESolver * prob
DAE problem solver object.
Definition: DAE_wrapper.h:219
double cm2_to_m2
Convert from centimetres squared to metres squared.
Definition: DAE_wrapper.h:232
double * zeta
Array of boundary points.
Definition: DAE_wrapper.h:216
This class provides an interface to the Fortran 77 code COLDAE.
Definition: DAE_solver.h:105
double * mesh
Array of mesh points.
Definition: DAE_wrapper.h:187
This class is to be used as a wrapper for the functions needed in the DAESolver.
Definition: DAE_wrapper.h:82
int n_y
number of Algebraic constraints
Definition: DAE_wrapper.h:199
double cm_to_m
Convert from centimetres to metres.
Definition: DAE_wrapper.h:229
double boundary_1
Right boundary point.
Definition: DAE_wrapper.h:213
int n_mesh
Number of mesh points.
Definition: DAE_wrapper.h:184
int n_colloc
Number of collocation points.
Definition: DAE_wrapper.h:190
int * ltol
Definition: DAE_wrapper.h:224
double boundary_0
Left boundary point.
Definition: DAE_wrapper.h:210
void clear_memory()
Definition: DAE_wrapper.h:166
int m_star
Integer representing the total number of variables given by .
Definition: DAE_wrapper.h:207