CepsLocationFlag
DataLocation: an enum that will be used by various elements of the code (pde, readers,...
std::basic_string< CepsChar > CepsString
C++ format string.
CepsIndex CepsUnknownIndex
For unknowns.
constexpr const CepsChar CepsNoName[]
Default string for things without defined name.
std::set< _Type, _Compare, _Alloc > CepsSet
C++ set.
constexpr const CepsChar CepsNoUnit[]
Default string for things without defined unit.
void getRegionsIntersectionWith(Unknown const *a, Unknown const *b, CepsSet< CepsAttribute > *regions)
Extracts the regions on which both unknowns are defined.
Data describing how two unknowns are coupled.
Unknown * u2
Second unknown in the coupling.
Unknown * u1
First unknown in the coupling.
A class used to defined an unknown of a PDE problem The unknown can be defined on a specific region,...
CepsBool interactsWith(Unknown *u) const
Tells if unknowns interacts with another, true if self.
const CepsSet< Unknown * > & getUnknownsInInteraction() const
Get the set of unknowns with whom there are interactions.
Unknown & operator=(const Unknown &that)
Copy assignement.
const CepsLocationFlag & getLocation() const
Get the data location of the unknown.
CepsBool isOnLocation(const CepsLocationFlag &flag) const
Detect if the unknown is appliable on this location.
void setUnit(const CepsString &unit)
Set the unit of the unknown.
CepsString m_unit
Unit of the unknown.
void setName(const CepsString &name)
Get the name of the unknown.
CepsString m_name
Name of the unknown.
void addUnknownInteraction(Unknown *u, CepsBool addReciprocal=true)
Add an unknown this one interacts with.
CepsLocationFlag m_location
Unknown location.
const CepsString & getName() const
Get the name of the unknown.
Unknown()=delete
Default constructor.
CepsBool isSpatial() const
Tells if unknown is defined on geometrical elements.
void setLocation(const CepsLocationFlag &location)
Set the data location of the unknown.
const CepsString & getUnit() const
Get the unit of the unknown.
CepsUnknownIndex getIdentifier() const
Get the identifier of the unknown.
CepsUnknownIndex m_identifier
Identifier.
CepsSet< Unknown * > m_interactsWith
Other unknowns in interaction.
An abstract class from which all objects that contain region attributes should derive.