EvaporationAndHeatUnitTest.cpp File Reference

Classes

class  EvaporationAndHeatTest
 

Functions

int main ()
 Solve problem. More...
 

Function Documentation

◆ main()

int main ( )

Solve problem.

122  {
123  EvaporationAndHeatTest problem;
124  //problem.setWallsWriteVTK(true);
125  //problem.setParticlesWriteVTK(true);
126  //problem.setInteractionsWriteVTK(true);
127  problem.solve();
128  // check final liquid film and temperature values
129  auto p0 = dynamic_cast<const HeatFluidCoupledParticle*>(problem.particleHandler.getObject(0));
130  helpers::check(p0->getLiquidVolume(),0,1e-8,"LiquidFilmVolume");
131  helpers::check(p0->getTemperature(),228.191,1e-3,"Temperature");
132  return 0;
133 }
T * getObject(const unsigned int id)
Gets a pointer to the Object at the specified index in the BaseHandler.
Definition: BaseHandler.h:613
ParticleHandler particleHandler
An object of the class ParticleHandler, contains the pointers to all the particles created.
Definition: DPMBase.h:1437
void solve()
The work horse of the code.
Definition: DPMBase.cc:4270
Definition: EvaporationAndHeatUnitTest.cpp:33
Class of particles that store both temperature and liquid volume, which is adapted for the CFD-DEM st...
Definition: HeatFluidCoupledParticle.h:46
void check(double real, double ideal, double error, std::string errorMessage)
Definition: TestHelpers.cc:37

References helpers::check(), BaseHandler< T >::getObject(), DPMBase::particleHandler, and DPMBase::solve().