Feel++ 0.111.0-preview.14
Finite Element Embedded Library in C++
Feel::Simget Class Referenceabstract

Simulation Object. More...

+ Inheritance diagram for Feel::Simget:
+ Collaboration diagram for Feel::Simget:

Methods

class Application
 
double M_meshSize
 
double M_meshSizeInit
 
int M_level
 
ptree::ptree M_stats
 
virtual void run ()=0
 simply execute the simget
 
virtual void run (const double *X, unsigned long P, double *Y, unsigned long N)
 models the input/output relation \( Y=F(X) \)
 
void print (std::ostream &out, std::vector< ptree::ptree > &stats)
 print statistics from simget
 
Simget & changeRepository (boost::format fmt)
 change repository.
 

Constructors, destructor

 Simget ()
 constructor with a variables_map
 
virtual ~Simget ()
 destructor
 

Operator overloads

Simget & operator= (Simget const &o)
 copy operator
 

Accessors

virtual std::string name () const
 return the name of the simget
 
mpi::communicator comm () const
 
po::variables_map const & vm () const
 
AboutData const & about () const
 
double meshSize () const
 return the mesh size
 
double meshSizeInit () const
 return the mesh size
 
int level () const
 return the refinement level
 
ptree::ptree const & stats () const
 return the statistics associated to the simget after calling run
 
ptree::ptree & stats ()
 return the statistics associated to the simget after calling run
 

Mutators

void setMeshSize (double h)
 set the mesh size
 
void setMeshSizeInit (double h)
 set the initial mesh size
 
void setLevel (int level)
 set the refinment level if applicable
 

Detailed Description

Simulation Object.

A Simget is an object that provides two flavors of run() member function

  • run() without any argument which simulates a blackbox \( F \) whitout any outputs or inputs
  • run( double* X, int P, double* Y, int N ) which simulates a blackbox with input/output relationship \( Y = F(X) \) with \( Y \in \mathbb{R}^N\) and \( X \in \mathbb{R}^P\).
Author
Christophe Prud'homme
See also

Member Function Documentation

◆ about()

AboutData const & Feel::Simget::about ( ) const
Returns
the AboutData object

◆ comm()

mpi::communicator Feel::Simget::comm ( ) const
Returns
the mpi communicator

◆ vm()

po::variables_map const & Feel::Simget::vm ( ) const
Returns
the variables_map