1 #ifndef EQUATION_DOMAIN_SOLVER_H
2 #define EQUATION_DOMAIN_SOLVER_H
6 #include "OgesParameters.h"
7 #include "CompositeGridOperators.h"
12 int numberOfGhostLinesToCheck );
50 CompositeGrid &
cg, GenericGraphicsInterface *ps=NULL,
51 Ogshow *show=NULL,
const int & plotOption=1 );
60 int numberOfGridFunctionsToUpdate=0,
61 realCompositeGridFunction *cgf=NULL,
62 realCompositeGridFunction *uWork =NULL );
72 realCompositeGridFunction &
coeff,
73 realCompositeGridFunction &ucur,
77 addForcing(realMappedGridFunction & dvdt,
const realMappedGridFunction &
u,
int iparam[], real rparam[],
78 realMappedGridFunction & dvdtImplicit = Overture::nullRealMappedGridFunction(),
79 realMappedGridFunction *referenceFrameVelocity=NULL);
93 advanceADI( real & t, real &
dt,
int & numberOfSubSteps,
int &
init,
int initialStep );
106 const int grid,
const int direction,
107 realCompositeGridFunction &
u0,
108 realMappedGridFunction &
f,
111 const bool computeTheResidual =
false );
114 advanceMidPoint( real & t0, real & dt0,
int & numberOfSubSteps,
int initialStep );
117 advanceNewton( real & t0, real & dt0,
int & numberOfSubSteps,
int &
init,
int initialStep );
137 int & numberOfTimeSteps,
138 const real & nextTimeToPrint );
143 const int & option =-1,
146 const real &
dt =-1. );
150 realMappedGridFunction & gridVelocity,
152 const int & option=-1,
153 realMappedGridFunction *puOld=NULL,
154 realMappedGridFunction *pGridVelocityOld=NULL,
155 const real &
dt=-1.);
162 realMappedGridFunction &uL,
163 realMappedGridFunction & gridVelocity,
175 const int & option=-1,
178 const real &
dt=-1.);
191 const int orderOfExtrapolation,
195 realCompositeGridFunction *puga=NULL,
196 realCompositeGridFunction *pugb=NULL,
197 realCompositeGridFunction *pugc=NULL,
198 realCompositeGridFunction *pugd=NULL );
213 buildGrid( Mapping *&newMapping,
int newGridNumber, IntegerArray & sharedBoundaryCondition );
238 checkSolution(
const realGridCollectionFunction & u,
const aString & title,
bool printResults=
false );
241 checkSolution(realMappedGridFunction & u,
const aString & title,
bool printResults,
int grid,
242 real & maxVal,
bool printResultsOnFailure=
false );
253 const real & nextTimeToPrint,
254 int & numberOfSubSteps,
256 const bool & adjustTimeStep =
true );
269 const aString & label =nullString );
273 realMappedGridFunction **gridVelocity,
277 const aString & label =nullString );
304 eulerStep(
const real & t1,
const real & t2,
const real & t3,
const real & dt0,
308 realCompositeGridFunction &
ut,
309 realCompositeGridFunction & uti,
311 int & numberOfSubSteps );
335 intCompositeGridFunction & errorFlag,
336 realCompositeGridFunction & error );
341 realCompositeGridFunction & error,
342 bool computeOnFinestLevel=
false );
344 virtual realCompositeGridFunction &
348 getBounds(
const realCompositeGridFunction & u,
367 real dsMin[3], real dsAve[3], real dsMax[3],
368 real & maxMax, real & maxMin, real & minMin );
376 DialogData *interface =NULL,
377 GUIState *guiState = NULL,
378 DialogState *dialogState = NULL );
418 getResidualInfo( real t0,
const realCompositeGridFunction &
residual, real & maximumResidual, real & maximuml2, FILE *file=NULL );
421 getSolutionBounds(
const realMappedGridFunction & u, realArray & uMin, realArray & uMax, real & uvMax);
447 realMappedGridFunction & u,
448 realMappedGridFunction & gridVelocity,
461 realMappedGridFunction & u,
462 realMappedGridFunction & gridVelocity,
469 DialogData & dialog ) ;
474 RealCompositeGridFunction &
ut,
478 getUt(
const realMappedGridFunction &
v,
479 const realMappedGridFunction & gridVelocity,
480 realMappedGridFunction & dvdt,
481 int iparam[], real rparam[],
482 realMappedGridFunction & dvdtImplicit = Overture::nullRealMappedGridFunction(),
483 MappedGrid *pmg2=NULL,
484 const realMappedGridFunction *pGridVelocity2= NULL);
525 int interfaceDataOptions,
528 int gfIndex, real t );
536 const real &
dt =-1. );
574 const aString & label =nullString,
575 int printOption = 0 );
578 outputSolution(
const realMappedGridFunction & u,
const real & t );
584 plot(
const real & t,
const int & optionIn, real & tFinal );
592 printP(
const char *format, ...)
const;
606 const aString & restartFileName =nullString );
628 const IntegerArray & originalBoundaryCondition );
671 DialogData *interface =NULL );
674 setup(
const real & time = 0.);
680 setupPde(aString & reactionName,
bool restartChosen, IntegerArray & originalBoundaryCondition);
703 sizeOf(FILE *file = NULL )
const;
730 takeOneStep( real & t, real &
dt,
int stepNumber,
int & numberOfSubSteps );
770 Mapping *&newMapping,
772 IntegerArray & sharedBoundaryCondition );
812 IntegerArray & changes,
813 IntegerArray & sharedBoundaryCondition,
897 realCompositeGridFunction &
p()
const{
return *
pp;}
898 realCompositeGridFunction &
px()
const{
return *
ppx;}
899 realCompositeGridFunction &
rL()
const{
return *
prL;}
900 realCompositeGridFunction &
pL()
const{
return *
ppL;}
901 realCompositeGridFunction &
rho()
const{
return *
prho;}
902 realCompositeGridFunction &
gam()
const{
return *
pgam;}
906 realCompositeGridFunction *
pgam;