PetIBM 0.5.4
Toolbox and applications of the immersed-boundary method for distributed-memory architectures
petibm::parser Namespace Reference

A collection of YAML node parsers. More...

Functions

PetscErrorCode getSettings (YAML::Node &node)
 Get configuration settings. More...
 
PetscErrorCode readYAMLFile (const std::string &filePath, YAML::Node &node)
 Load the content of a YAML file into a YAML node. More...
 
PetscErrorCode parseMesh (const YAML::Node &meshNode, PetscInt &dim, type::RealVec1D &bg, type::RealVec1D &ed, type::IntVec1D &nTotal, type::RealVec2D &dL)
 Parse a YAML node of cartesianMesh. More...
 
PetscErrorCode parseOneAxis (const YAML::Node &axis, PetscInt &dir, PetscReal &bg, PetscReal &ed, PetscInt &nTotal, type::RealVec1D &dL)
 Parse the info of only one direction from YAML node. More...
 
PetscErrorCode parseSubDomains (const YAML::Node &subs, const PetscReal bg, PetscInt &nTotal, PetscReal &ed, type::RealVec1D &dL)
 Parse all sub-domains in a direction. More...
 
PetscErrorCode parseOneSubDomain (const YAML::Node &sub, const PetscReal bg, PetscInt &n, PetscReal &ed, type::RealVec1D &dL)
 Parse only one sub-domain. More...
 
PetscErrorCode parseBCs (const YAML::Node &node, type::IntVec2D &bcTypes, type::RealVec2D &bcValues)
 Parse boundary conditions from a YAML node. More...
 
PetscErrorCode parseICs (const YAML::Node &node, std::vector< SymEngine::LambdaRealDoubleVisitor > &ics)
 Parse initial conditions from a YAML node. More...
 

Detailed Description

A collection of YAML node parsers.