23 std::string name = mesh->getName();
29std::vector<std::unique_ptr<MeshLib::Mesh>>::const_iterator
36 std::string
const& name)
39 [&name](std::unique_ptr<MeshLib::Mesh>& mesh)
40 { return mesh && (name == mesh->getName()); });
46 return (it ==
_mesh_vec.end() ?
nullptr : it->get());
77 cpName = cpName +
"-" + std::to_string(count);
82 if (cpName == mesh->getName())
103 for (
int i = n_bc - 1; i >= 0; --i)
113 for (
int i = n_st - 1; i >= 0; --i)
115 if (
_source_terms[i]->getProcessVarName() == primary_var_name)
124 std::string
const& param_name)
127 for (std::size_t i = 0; i < n_bc; ++i)
140 std::string
const& param_name)
143 for (std::size_t i = 0; i < n_st; ++i)
145 if (
_source_terms[i]->getProcessVarName() == primary_var_name &&
Definition of the Mesh class.
void removeSourceTerm(std::string const &primary_var_name, std::string const ¶m_name)
Remove one source term.
bool removeMesh(const std::string &name)
std::vector< std::unique_ptr< SourceTerm > > _source_terms
void addMesh(std::unique_ptr< MeshLib::Mesh > mesh)
void removePrimaryVariable(std::string const &primary_var_name)
Removes a primary variable incl. all associated conditions.
const MeshLib::Mesh * getMesh(const std::string &name) const
std::vector< std::unique_ptr< MeshLib::Mesh > >::const_iterator findMeshByName(std::string const &name) const
Returns an iterator to the first found mesh with the given name.
void removeBoundaryCondition(std::string const &primary_var_name, std::string const ¶m_name)
Removes one boundary condition.
bool getUniqueName(std::string &name) const
std::vector< std::unique_ptr< BoundaryCondition > > _boundary_conditions
std::vector< std::unique_ptr< MeshLib::Mesh > > _mesh_vec