OpenLB 1.7
Loading...
Searching...
No Matches
Public Member Functions | List of all members
olb::parameters::Reader< SimulationBase< T >, TAG > Struct Template Reference

#include <solverParameters.h>

+ Inheritance diagram for olb::parameters::Reader< SimulationBase< T >, TAG >:
+ Collaboration diagram for olb::parameters::Reader< SimulationBase< T >, TAG >:

Public Member Functions

void read (XMLreader const &xml)
 
- Public Member Functions inherited from olb::parameters::ReaderBase< SimulationBase< T > >
 ReaderBase (std::shared_ptr< SimulationBase< T > > params_)
 

Additional Inherited Members

- Public Attributes inherited from olb::parameters::ReaderBase< SimulationBase< T > >
OstreamManager clout
 
std::shared_ptr< SimulationBase< T > > params
 

Detailed Description

template<typename T, typename TAG>
struct olb::parameters::Reader< SimulationBase< T >, TAG >

Definition at line 300 of file solverParameters.h.

Member Function Documentation

◆ read()

template<typename T , typename TAG >
void olb::parameters::Reader< SimulationBase< T >, TAG >::read ( XMLreader const & xml)
inline

Definition at line 304 of file solverParameters.h.

305 {
306 using BT = BaseType<T>;
307
308 xml.readOrWarn<BT>("Application", "PhysParameters", "StartUpTime", this->params->startUpTime, false, false, false);
309 xml.readOrWarn<BT>("Application", "PhysParameters", "PhysMaxTime", this->params->maxTime, false, true, true);
310 xml.readOrWarn<int>("Application", "Mesh", "noCuboidsPerProcess", this->params->noC, true, false, true);
311 xml.readOrWarn<bool>("Application", "PressureFilter", "", this->params->pressureFilter, true, false, false);
312
313 this->params->physBoundaryValueUpdateTime = this->params->maxTime / BT(100); // 1% of max. time as default value
314 xml.readOrWarn<BT>("Application", "PhysParameters", "BoundaryValueUpdateTime", this->params->physBoundaryValueUpdateTime, true, false, true);
315 this->params->physTimeStabilityCheck = this->params->maxTime / BT(100);
316 xml.readOrWarn<BT>("Application", "PhysParameters", "TimeStabilityCheck", this->params->physTimeStabilityCheck, true, false, true);
317 }
std::shared_ptr< SimulationBase< T > > params

References olb::parameters::ReaderBase< PARAMETERS >::params, and olb::XMLreader::readOrWarn().

+ Here is the call graph for this function:

The documentation for this struct was generated from the following file: