62 Domain(
const std::string& dname=
""): domain_name(dname) { }
72 std::string&
name() {
return domain_name; }
73 const std::string&
name()
const {
return domain_name; }
85 void info(
const bool outermost=
false)
const;
87 bool contains(
const Mesh& m)
const {
return mesh_orientation(m)!=0; }
96 for (
const auto& boundary : boundaries())
97 for (
const auto& omesh : boundary.interface().oriented_meshes())
98 if (&omesh.mesh()==&m)
99 return boundary.mesh_orientation(omesh);
106 std::string domain_name =
"";
a Domain is a vector of SimpleDomain A Domain is the intersection of simple domains (of type SimpleDo...
const Boundaries & boundaries() const
int mesh_orientation(const Mesh &m) const
std::string & name()
The name of the domain.
Boundaries & boundaries()
Boundaries of the domain.
const std::string & name() const
Domain(const std::string &dname="")
bool has_conductivity() const
std::vector< SimpleDomain > Boundaries
void info(const bool outermost=false) const
Print information about the domain.
bool contains(const Mesh &m) const
void set_conductivity(const double c)
The conductivity of the domain.
bool contains(const Vect3 &point) const
Does this point belongs to the domain ?
const double & conductivity() const
Interface class An interface is a closed-shape composed of oriented meshes (vector of oriented meshes...
An Oriented Mesh is a mesh associated with a boolean stating if it is well oriented.
int orientation() const
orientation is +1 or -1 ?
a SimpleDomain is a pair of an Interface and a boolean.
SimpleDomain(Interface &i, const Side s)
const Interface & interface() const
int mesh_orientation(const OrientedMesh &omesh) const
std::vector< Domain > Domains
A vector of Domain is called Domains.