Class xlifepp::Unknown#

class Unknown#

Inheritence diagram for xlifepp::Unknown:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "2" [label="xlifepp::ComponentOfUnknown" tooltip="xlifepp::ComponentOfUnknown"] "3" [label="xlifepp::ComponentsOfUnknown" tooltip="xlifepp::ComponentsOfUnknown"] "4" [label="xlifepp::TestFunction" tooltip="xlifepp::TestFunction"] "1" [label="xlifepp::Unknown" tooltip="xlifepp::Unknown" fillcolor="#BFBFBF"] "2" -> "1" [dir=forward tooltip="public-inheritance"] "3" -> "1" [dir=forward tooltip="public-inheritance"] "4" -> "1" [dir=forward tooltip="public-inheritance"] }

Collaboration diagram for xlifepp::Unknown:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "26" [label="xlifepp::Collection< string_t >" tooltip="xlifepp::Collection< string_t >"] "19" [label="xlifepp::Matrix< real_t >" tooltip="xlifepp::Matrix< real_t >"] "23" [label="xlifepp::Vector< real_t >" tooltip="xlifepp::Vector< real_t >"] "34" [label="xlifepp::Vector< xlifepp::Vector< real_t > >" tooltip="xlifepp::Vector< xlifepp::Vector< real_t > >"] "39" [label="std::list< std::pair< number_t, real_t > >" tooltip="std::list< std::pair< number_t, real_t > >"] "15" [label="std::map< number_t, std::vector< number_t > >" tooltip="std::map< number_t, std::vector< number_t > >"] "13" [label="std::map< number_t, xlifepp::Geometry * >" tooltip="std::map< number_t, xlifepp::Geometry * >"] "38" [label="std::map< string_t, number_t >" tooltip="std::map< string_t, number_t >"] "40" [label="std::list< T >" tooltip="std::list< T >"] "14" [label="std::map< K, T >" tooltip="std::map< K, T >"] "10" [label="std::vector< T >" tooltip="std::vector< T >"] "29" [label="std::vector< T >" tooltip="std::vector< T >"] "22" [label="std::vector< K >" tooltip="std::vector< K >"] "9" [label="std::vector< RealPair >" tooltip="std::vector< RealPair >"] "45" [label="std::vector< const xlifepp::GeomDomain * >" tooltip="std::vector< const xlifepp::GeomDomain * >"] "25" [label="std::vector< const xlifepp::Transformation * >" tooltip="std::vector< const xlifepp::Transformation * >"] "30" [label="std::vector< number_t >" tooltip="std::vector< number_t >"] "20" [label="std::vector< real_t >" tooltip="std::vector< real_t >"] "44" [label="std::vector< std::vector< GeoNumPair > >" tooltip="std::vector< std::vector< GeoNumPair > >"] "16" [label="std::vector< std::vector< int_t > >" tooltip="std::vector< std::vector< int_t > >"] "27" [label="std::vector< string_t >" tooltip="std::vector< string_t >"] "43" [label="std::vector< xlifepp::GeomDomain * >" tooltip="std::vector< xlifepp::GeomDomain * >"] "42" [label="std::vector< xlifepp::GeomElement * >" tooltip="std::vector< xlifepp::GeomElement * >"] "37" [label="std::vector< xlifepp::Parameter * >" tooltip="std::vector< xlifepp::Parameter * >"] "12" [label="std::vector< xlifepp::Point >" tooltip="std::vector< xlifepp::Point >"] "46" [label="std::vector< xlifepp::Space * >" tooltip="std::vector< xlifepp::Space * >"] "31" [label="std::vector< xlifepp::Transformation * >" tooltip="std::vector< xlifepp::Transformation * >"] "47" [label="std::vector< xlifepp::Unknown * >" tooltip="std::vector< xlifepp::Unknown * >"] "35" [label="std::vector< xlifepp::Vector< real_t > >" tooltip="std::vector< xlifepp::Vector< real_t > >"] "8" [label="xlifepp::BoundingBox" tooltip="xlifepp::BoundingBox"] "28" [label="xlifepp::Collection< T >" tooltip="xlifepp::Collection< T >"] "5" [label="xlifepp::DomainInfo" tooltip="xlifepp::DomainInfo"] "17" [label="xlifepp::ExtrusionData" tooltip="xlifepp::ExtrusionData"] "41" [label="xlifepp::GeoNode" tooltip="xlifepp::GeoNode"] "4" [label="xlifepp::GeomDomain" tooltip="xlifepp::GeomDomain"] "7" [label="xlifepp::Geometry" tooltip="xlifepp::Geometry"] "21" [label="xlifepp::Matrix< K >" tooltip="xlifepp::Matrix< K >"] "6" [label="xlifepp::Mesh" tooltip="xlifepp::Mesh"] "11" [label="xlifepp::MinimalBox" tooltip="xlifepp::MinimalBox"] "36" [label="xlifepp::Parameters" tooltip="xlifepp::Parameters"] "33" [label="xlifepp::Parametrization" tooltip="xlifepp::Parametrization"] "32" [label="xlifepp::Point" tooltip="xlifepp::Point"] "2" [label="xlifepp::Space" tooltip="xlifepp::Space"] "3" [label="xlifepp::SpaceInfo" tooltip="xlifepp::SpaceInfo"] "18" [label="xlifepp::Transformation" tooltip="xlifepp::Transformation"] "1" [label="xlifepp::Unknown" tooltip="xlifepp::Unknown" fillcolor="#BFBFBF"] "24" [label="xlifepp::Vector< K >" tooltip="xlifepp::Vector< K >"] "26" -> "27" [dir=forward tooltip="public-inheritance"] "26" -> "28" [dir=forward tooltip="template-instance"] "19" -> "20" [dir=forward tooltip="public-inheritance"] "19" -> "21" [dir=forward tooltip="template-instance"] "23" -> "20" [dir=forward tooltip="public-inheritance"] "23" -> "24" [dir=forward tooltip="template-instance"] "34" -> "35" [dir=forward tooltip="public-inheritance"] "34" -> "24" [dir=forward tooltip="template-instance"] "39" -> "40" [dir=forward tooltip="template-instance"] "15" -> "14" [dir=forward tooltip="template-instance"] "13" -> "14" [dir=forward tooltip="template-instance"] "38" -> "14" [dir=forward tooltip="template-instance"] "22" -> "10" [dir=forward tooltip="template-instance"] "9" -> "10" [dir=forward tooltip="template-instance"] "45" -> "10" [dir=forward tooltip="template-instance"] "25" -> "10" [dir=forward tooltip="template-instance"] "30" -> "10" [dir=forward tooltip="template-instance"] "20" -> "10" [dir=forward tooltip="template-instance"] "44" -> "10" [dir=forward tooltip="template-instance"] "16" -> "10" [dir=forward tooltip="template-instance"] "27" -> "10" [dir=forward tooltip="template-instance"] "43" -> "10" [dir=forward tooltip="template-instance"] "42" -> "10" [dir=forward tooltip="template-instance"] "37" -> "10" [dir=forward tooltip="template-instance"] "12" -> "10" [dir=forward tooltip="template-instance"] "46" -> "10" [dir=forward tooltip="template-instance"] "31" -> "10" [dir=forward tooltip="template-instance"] "47" -> "10" [dir=forward tooltip="template-instance"] "35" -> "10" [dir=forward tooltip="template-instance"] "8" -> "9" [dir=forward tooltip="usage"] "28" -> "29" [dir=forward tooltip="public-inheritance"] "5" -> "6" [dir=forward tooltip="usage"] "17" -> "18" [dir=forward tooltip="usage"] "17" -> "26" [dir=forward tooltip="usage"] "17" -> "30" [dir=forward tooltip="usage"] "17" -> "20" [dir=forward tooltip="usage"] "17" -> "23" [dir=forward tooltip="usage"] "17" -> "31" [dir=forward tooltip="usage"] "17" -> "32" [dir=forward tooltip="usage"] "41" -> "41" [dir=forward tooltip="usage"] "41" -> "7" [dir=forward tooltip="usage"] "4" -> "5" [dir=forward tooltip="usage"] "4" -> "4" [dir=forward tooltip="usage"] "4" -> "7" [dir=forward tooltip="usage"] "4" -> "45" [dir=forward tooltip="usage"] "7" -> "8" [dir=forward tooltip="usage"] "7" -> "11" [dir=forward tooltip="usage"] "7" -> "13" [dir=forward tooltip="usage"] "7" -> "15" [dir=forward tooltip="usage"] "7" -> "16" [dir=forward tooltip="usage"] "7" -> "17" [dir=forward tooltip="usage"] "7" -> "33" [dir=forward tooltip="usage"] "7" -> "7" [dir=forward tooltip="usage"] "7" -> "41" [dir=forward tooltip="usage"] "21" -> "22" [dir=forward tooltip="public-inheritance"] "6" -> "7" [dir=forward tooltip="usage"] "6" -> "12" [dir=forward tooltip="usage"] "6" -> "42" [dir=forward tooltip="usage"] "6" -> "43" [dir=forward tooltip="usage"] "6" -> "30" [dir=forward tooltip="usage"] "6" -> "44" [dir=forward tooltip="usage"] "6" -> "6" [dir=forward tooltip="usage"] "11" -> "12" [dir=forward tooltip="usage"] "36" -> "37" [dir=forward tooltip="usage"] "36" -> "38" [dir=forward tooltip="usage"] "33" -> "7" [dir=forward tooltip="usage"] "33" -> "23" [dir=forward tooltip="usage"] "33" -> "34" [dir=forward tooltip="usage"] "33" -> "6" [dir=forward tooltip="usage"] "33" -> "36" [dir=forward tooltip="usage"] "33" -> "39" [dir=forward tooltip="usage"] "32" -> "20" [dir=forward tooltip="public-inheritance"] "2" -> "2" [dir=forward tooltip="usage"] "2" -> "3" [dir=forward tooltip="usage"] "2" -> "46" [dir=forward tooltip="usage"] "3" -> "4" [dir=forward tooltip="usage"] "18" -> "19" [dir=forward tooltip="usage"] "18" -> "23" [dir=forward tooltip="usage"] "18" -> "25" [dir=forward tooltip="usage"] "1" -> "2" [dir=forward tooltip="usage"] "1" -> "1" [dir=forward tooltip="usage"] "1" -> "47" [dir=forward tooltip="usage"] "24" -> "22" [dir=forward tooltip="public-inheritance"] }

end user’s class to manage problem unknowns

Subclassed by xlifepp::ComponentOfUnknown, xlifepp::ComponentsOfUnknown, xlifepp::TestFunction

Public Functions

Unknown()#

default constructor

inline Unknown(const string_t &na, Space *sp, dimen_t nc, bool co, Unknown *du, number_t ra, bool iu)#

full explicit constructor

Unknown(const string_t &nm, Space &sp, dimen_t d = 1, number_t r = 0)#

unknown constructor from space, d is the number of components (user), r the unknown rank

Unknown(Space &sp, const char *nm, dimen_t d = 1, number_t r = 0)#

unknown constructor from space, d is the number of components (user), r the unknown rank

Unknown(Space &sp, const string_t &nm, dimen_t d = 1, number_t r = 0)#

unknown constructor from space, d is the number of components (user), r the unknown rank

inline virtual const ComponentOfUnknown *asComponent() const#

return Unknown as a ComponentOfUnknown if it is

inline virtual dimen_t componentIndex() const#

return component index if a ComponentOfUnknown, 0 if not

inline bool &conjugate()#

return the conjugate state (true/false) flag

inline bool conjugate() const#

return the conjugate state (true/false) flag

inline void conjugate(bool v) const#

set the conjugate state flag

number_t degree() const#

order of polynom used by unknown (degree od basis), decreased by order of derivation as we use numtype (order of interpolation) we distinguish Pk or Qk using a ShapeType argument

order of polynoms used by unknown (degree of basis) if FE space !

inline virtual dimen_t dimFun() const#

dimension of basis functions

const Unknown &dual() const#

return the dual unknown

inline Unknown *dual_p() const#

return the pointer to dual unknown

inline bool extensionRequired() const#

if FEspace, max degree of polynoms else return 5

true if unknown space has no trace space

number_t index() const#

return index of unknown (its rank in the Unknows vector)

inline virtual bool isComponent() const#

true if a ComponentOfUnknown

inline bool isFE() const#

true if FE unknown (FE space)

inline bool isSpectral() const#

true if spectral unknown (spectral space)

inline string_t name() const#

return name

inline virtual dimen_t nbOfComponents() const#

dimension of unknown

EssentialCondition operator=(const complex_t&)#

construct equation u = c

EssentialCondition operator=(const Function&)#

construct equation u = f

EssentialCondition operator=(const real_t&)#

construct equation u = r

EssentialCondition operator=(const TermVector&)#

construct equation u = TermVector (implemented in TermVector.cpp)

Unknown &operator[](dimen_t)#

create in memory the ComponentOfUnknown u_i

inline virtual const Unknown *parent() const#

return parent (itself)

inline number_t rank() const#

return the unknown rank (const)

void setRank(number_t)#

set the rank with checking (user)

set the rank of unknown

inline Space *space() const#

return pointer to space

StrucType strucType() const#

return the structure type of an unknown (scalar or vector)

UnknownType type() const#

return type of unknown

Public Members

bool isUnknown#

true if it is an unknown, false if it is a test function (see constructor)

mutable number_t nbEcShare = 0#

special counter used by the Essential condition machinery (ghost row unknown space)

Public Static Functions

static void clearGlobalVector()#

delete all unknown objects

static Unknown *findUnknown(const string_t&)#

find unknown by its name

static void printAllUnknowns(std::ostream&)#

print the list of Unknown objects in memory

Public Static Attributes

static number_t last_rank = 0#

last rank to set unique unknown rank

static std::vector<Unknown*> theUnknowns#

list of pointers of all Unknowns

Friends

friend Unknown &conj(Unknown&)#

set to true or false the temporary conjugate flag

friend std::ostream &operator<<(std::ostream&, const Unknown&)#

print an unknown