11 #ifndef _EBAMRTESTCOMMON_H_ 12 #define _EBAMRTESTCOMMON_H_ 40 #include "NamespaceHeader.H" 76 for (
int idir = 0; idir <
SpaceDim; idir++)
79 for (
int jdir = 0; jdir <
SpaceDim; jdir++)
81 a_vel[idir] += m_coeff[jdir]*a_point[jdir];
91 for (
int idir = 0; idir <
SpaceDim; idir++)
93 for (
int jdir = 0; jdir <
SpaceDim; jdir++)
96 a_grad[iindex] = m_coeff[jdir];
103 for (
int idir = 0; idir <
SpaceDim; idir++)
105 m_coeff[idir] =
Real(idir + 1);
125 for (
int idir = 0; idir <
SpaceDim; idir++)
127 for (
int jdir = 0; jdir <
SpaceDim; jdir++)
129 a_vel[idir] = m_coeff[jdir];
139 for (
int ivar = 0; ivar <
SpaceDim; ivar++)
141 for (
int jdir = 0; jdir <
SpaceDim; jdir++)
151 for (
int idir = 0; idir <
SpaceDim; idir++)
153 m_coeff[idir] =
Real(idir + 1);
174 for (
int ivar = 0; ivar <
SpaceDim; ivar++)
177 for (
int jdir = 0; jdir <
SpaceDim; jdir++)
179 a_vel[ivar] += m_coeff[jdir]*a_point[jdir]*a_point[jdir];
189 for (
int ivar = 0; ivar <
SpaceDim; ivar++)
191 for (
int jdir = 0; jdir <
SpaceDim; jdir++)
194 a_grad[iindex] = 2.*m_coeff[jdir]*a_point[jdir];
205 for (
int ivar = 0; ivar <
SpaceDim; ivar++)
207 m_coeff[ivar] =
Real(ivar + 1);
224 for (
int ivar = 0; ivar <
SpaceDim; ivar++)
226 for (
int jdir = 0; jdir <
SpaceDim; jdir++)
228 a_vel[ivar] += m_coeff[jdir]*a_point[jdir]*a_point[jdir]*a_point[jdir];
238 for (
int ivar = 0; ivar <
SpaceDim; ivar++)
240 for (
int jdir = 0; jdir <
SpaceDim; jdir++)
243 a_grad[iindex] = 3.*m_coeff[jdir]*a_point[jdir]*a_point[jdir];
251 for (
int ivar = 0; ivar <
SpaceDim; ivar++)
253 m_coeff[ivar] =
Real(ivar + 1);
274 const Box& a_domainFine,
278 const Box& a_domainCoar);
286 const int& a_nghost);
296 const Box& a_domainFine,
297 const Box& a_domainCoar,
298 int a_refrat,
int a_halfDir);
303 static int makeGeometry(
Box& a_domain,
313 const Box& a_domainFine,
325 const Box& a_domainFine,
326 const Box& a_domainCoar,
327 const string& a_fileFine,
328 const string& a_fileCoar);
331 #include "NamespaceFooter.H" BaseAnalytic()
Definition: EBAMRTestCommon.H:58
Definition: EBAMRTestCommon.H:166
QuadAnalytic()
Definition: EBAMRTestCommon.H:203
RealVect m_coeff
Definition: EBAMRTestCommon.H:159
LinearAnalytic()
Definition: EBAMRTestCommon.H:101
virtual void gradVal(Real a_grad[SpaceDim *SpaceDim], const RealVect &a_point)
Definition: EBAMRTestCommon.H:89
static int gradIndex(int ivar, int gradDir)
returns component in gradient for variable ivar in direction gradDir
Definition: TensorCFInterp.H:142
void compareError(Vector< Real > &a_orders, const Vector< LevelData< FArrayBox > * > &a_errorFine, const Vector< LevelData< FArrayBox > * > &a_errorCoar, const Vector< DisjointBoxLayout > &a_gridsFine, const Vector< DisjointBoxLayout > &a_gridsCoar, const Vector< int > &a_refRat, const ProblemDomain &a_coarseDom, int a_testverbosity)
virtual ~QuadAnalytic()
Definition: EBAMRTestCommon.H:210
const int SpaceDim
Definition: SPACE.H:38
RealVect m_coeff
Definition: EBAMRTestCommon.H:259
virtual void veloVal(Real a_vel[SpaceDim], const RealVect &a_point)
Definition: EBAMRTestCommon.H:172
RealVect m_coeff
Definition: EBAMRTestCommon.H:213
virtual void veloVal(Real a_vel[SpaceDim], const RealVect &a_point)
Definition: EBAMRTestCommon.H:222
Definition: EBAMRTestCommon.H:68
virtual void veloVal(Real a_vel[SpaceDim], const RealVect &a_point)
Definition: EBAMRTestCommon.H:123
virtual void gradVal(Real a_grad[SpaceDim *SpaceDim], const RealVect &a_point)
Definition: EBAMRTestCommon.H:236
Definition: EBAMRTestCommon.H:265
virtual void gradVal(Real a_grad[SpaceDim *SpaceDim], const RealVect &a_point)=0
double Real
Definition: REAL.H:33
A BoxLayout that has a concept of disjointedness.
Definition: DisjointBoxLayout.H:30
Definition: EBAMRTestCommon.H:45
virtual ~CubeAnalytic()
Definition: EBAMRTestCommon.H:256
RealVect m_coeff
Definition: EBAMRTestCommon.H:111
virtual void gradVal(Real a_grad[SpaceDim *SpaceDim], const RealVect &a_point)
Definition: EBAMRTestCommon.H:187
Definition: EBAMRTestCommon.H:117
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:465
A Real vector in SpaceDim-dimensional space.
Definition: RealVect.H:41
virtual ~ConstAnalytic()
Definition: EBAMRTestCommon.H:156
virtual void veloVal(Real a_vel[SpaceDim], const RealVect &a_point)
Definition: EBAMRTestCommon.H:74
ConstAnalytic()
Definition: EBAMRTestCommon.H:149
virtual ~LinearAnalytic()
Definition: EBAMRTestCommon.H:108
Definition: EBISLayout.H:39
Definition: EBAMRTestCommon.H:216
virtual void veloVal(Real a_vel[SpaceDim], const RealVect &a_point)=0
virtual void gradVal(Real a_grad[SpaceDim *SpaceDim], const RealVect &a_point)
Definition: EBAMRTestCommon.H:137
CubeAnalytic()
Definition: EBAMRTestCommon.H:249
virtual ~BaseAnalytic()
Definition: EBAMRTestCommon.H:61