67 const map<tString,tString>& options)
const;
87 const tReal* Ut)
const;
260 const tReal *Xvalues,
static tReal sinusoidal_function(const tReal &L, const tReal &U, const tReal &x)
Definition: EMM_WaveTest.cpp:151
tReal computeEnergy(const tUIndex &n, const tReal &C, const tReal &dx, const tReal &dt, const tReal *U, const tReal *Ut) const
compute the energy of the wave :
Definition: EMM_WaveTest.cpp:754
This class is a Run class for Common package.
Definition: CORE_Run.h:38
#define tUInteger
Definition: types.h:91
static tReal shark_function(const tReal &t)
Definition: EMM_WaveTest.cpp:162
virtual tBoolean test(const CORE_Run &runner, const map< tString, tString > &options) const
make the test
Definition: EMM_WaveTest.cpp:14
virtual tBoolean waveTE2Propagation(const tBoolean &isForward, const tBoolean &isTXTOutput, const tString &prefix, const tBoolean &isPeriodic, const tBoolean dirichletLC[2], tReal U_0(const tReal &t), tReal U_L(const tReal &t), const tReal &C, const tReal &L, const tReal &cfl, const tUIndex nT, EMM_RealArray &U, EMM_RealArray &V) const =0
compute the wave at any time from initial conditions U(0,.) and V(0,x) and from dirichlet limit condi...
#define tBoolean
Definition: types.h:139
This class is a test class for E-MicromM package.
Definition: EMM_Test.h:25
tBoolean save(const tString &fileName, const tReal &dx, const tReal *U, const tUIndex &nPts) const
save the displacement at time with space space of dx
Definition: EMM_WaveTest.cpp:173
static void linearPieceWise_function(const tUInteger &n, const tReal *X, const tReal *Y, const tUInteger &nEvals, const tReal *Xvalues, tReal *Yvalues)
Definition: EMM_WaveTest.cpp:86
virtual ~EMM_WaveTest(void)
destroy the class
Definition: EMM_WaveTest.cpp:11
This class is a test class for testing wave equation : .
Definition: EMM_WaveTest.h:28
virtual tBoolean trianglePeriodicalWave() const =0
static tReal null_function(const tReal &t)
Definition: EMM_WaveTest.cpp:82
#define tUIndex
Definition: types.h:126
This class describes a real array.
Definition: EMM_RealArray.h:16
EMM_WaveTest(void)
create the class
Definition: EMM_WaveTest.cpp:8
DEFINE_SPTR(EMM_WaveTest)
tBoolean load(const tString &optionFile, tString &path, tBoolean &isTXTOutput, tBoolean &isPeriodic, tBoolean dirichletLC[2], tReal &L, tUIndex &nPoints, tReal &Umax, tReal &C, tUIndex &nTimes, tReal &cfl) const
load the data from txt file
Definition: EMM_WaveTest.cpp:222
virtual tBoolean waveSystemP1Propagation(const tBoolean &isTXTOutput, const tString &prefix, const tBoolean dirichletLC[2], tReal U_0(const tReal &t), tReal U_L(const tReal &t), const tReal &c, const tReal &L, const tReal &dt, const tUIndex nT, EMM_RealArray &U, EMM_RealArray &V) const =0
compute the wave at any time from initial conditions U(0,.) and V(0,x) and from dirichlet limit condi...
virtual tBoolean barWave() const =0
virtual tBoolean waveSystemP2Propagation(const tBoolean &isTXTOutput, const tString &prefix, const tBoolean dirichletLC[2], tReal U_0(const tReal &t), tReal U_L(const tReal &t), const tReal &c, const tReal &L, const tReal &cfl, const tUIndex nT, EMM_RealArray &U, EMM_RealArray &V) const =0
compute the wave at any time from initial conditions U(0,.) and V(0,x) and from dirichlet limit condi...
#define tString
Definition: types.h:135
virtual tBoolean sinusoidalWave() const =0
virtual tBoolean sharkWave() const =0
virtual tBoolean triangleWave() const =0
static tReal triangle_function(const tReal &L, const tReal &U, const tReal &x)
Definition: EMM_WaveTest.cpp:142
#define tReal
Definition: types.h:118