Class xlifepp::EssentialCondition#

class EssentialCondition#

Collaboration diagram for xlifepp::EssentialCondition:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "25" [label="xlifepp::Vector< complex_t >" tooltip="xlifepp::Vector< complex_t >"] "22" [label="xlifepp::Vector< real_t >" tooltip="xlifepp::Vector< real_t >"] "29" [label="xlifepp::Vector< xlifepp::Vector< complex_t > >" tooltip="xlifepp::Vector< xlifepp::Vector< complex_t > >"] "27" [label="xlifepp::Vector< xlifepp::Vector< real_t > >" tooltip="xlifepp::Vector< xlifepp::Vector< real_t > >"] "19" [label="std::map< const xlifepp::Unknown *, xlifepp::SuLinearForm >" tooltip="std::map< const xlifepp::Unknown *, xlifepp::SuLinearForm >"] "20" [label="std::map< const xlifepp::Unknown *, xlifepp::SuTermVector * >" tooltip="std::map< const xlifepp::Unknown *, xlifepp::SuTermVector * >"] "8" [label="std::map< string_t, number_t >" tooltip="std::map< string_t, number_t >"] "12" [label="std::map< string_t, std::pair< ValueType, StrucType > >" tooltip="std::map< string_t, std::pair< ValueType, StrucType > >"] "9" [label="std::map< K, T >" tooltip="std::map< K, T >"] "4" [label="std::vector< T >" tooltip="std::vector< T >"] "24" [label="std::vector< K >" tooltip="std::vector< K >"] "3" [label="std::vector< OpuValPair >" tooltip="std::vector< OpuValPair >"] "26" [label="std::vector< complex_t >" tooltip="std::vector< complex_t >"] "11" [label="std::vector< real_t >" tooltip="std::vector< real_t >"] "31" [label="std::vector< xlifepp::DofComponent >" tooltip="std::vector< xlifepp::DofComponent >"] "7" [label="std::vector< xlifepp::Parameter * >" tooltip="std::vector< xlifepp::Parameter * >"] "17" [label="std::vector< xlifepp::Term * >" tooltip="std::vector< xlifepp::Term * >"] "30" [label="std::vector< xlifepp::Vector< complex_t > >" tooltip="std::vector< xlifepp::Vector< complex_t > >"] "28" [label="std::vector< xlifepp::Vector< real_t > >" tooltip="std::vector< xlifepp::Vector< real_t > >"] "15" [label="xlifepp::ComputingInfo" tooltip="xlifepp::ComputingInfo"] "1" [label="xlifepp::EssentialCondition" tooltip="xlifepp::EssentialCondition" fillcolor="#BFBFBF"] "5" [label="xlifepp::Function" tooltip="xlifepp::Function"] "2" [label="xlifepp::LcOperatorOnUnknown" tooltip="xlifepp::LcOperatorOnUnknown"] "18" [label="xlifepp::LinearForm" tooltip="xlifepp::LinearForm"] "6" [label="xlifepp::Parameters" tooltip="xlifepp::Parameters"] "10" [label="xlifepp::Point" tooltip="xlifepp::Point"] "16" [label="xlifepp::ReductionMethod" tooltip="xlifepp::ReductionMethod"] "14" [label="xlifepp::Term" tooltip="xlifepp::Term"] "13" [label="xlifepp::TermVector" tooltip="xlifepp::TermVector"] "23" [label="xlifepp::Vector< K >" tooltip="xlifepp::Vector< K >"] "21" [label="xlifepp::VectorEntry" tooltip="xlifepp::VectorEntry"] "25" -> "26" [dir=forward tooltip="public-inheritance"] "25" -> "23" [dir=forward tooltip="template-instance"] "22" -> "11" [dir=forward tooltip="public-inheritance"] "22" -> "23" [dir=forward tooltip="template-instance"] "29" -> "30" [dir=forward tooltip="public-inheritance"] "29" -> "23" [dir=forward tooltip="template-instance"] "27" -> "28" [dir=forward tooltip="public-inheritance"] "27" -> "23" [dir=forward tooltip="template-instance"] "19" -> "9" [dir=forward tooltip="template-instance"] "20" -> "9" [dir=forward tooltip="template-instance"] "8" -> "9" [dir=forward tooltip="template-instance"] "12" -> "9" [dir=forward tooltip="template-instance"] "24" -> "4" [dir=forward tooltip="template-instance"] "3" -> "4" [dir=forward tooltip="template-instance"] "26" -> "4" [dir=forward tooltip="template-instance"] "11" -> "4" [dir=forward tooltip="template-instance"] "31" -> "4" [dir=forward tooltip="template-instance"] "7" -> "4" [dir=forward tooltip="template-instance"] "17" -> "4" [dir=forward tooltip="template-instance"] "30" -> "4" [dir=forward tooltip="template-instance"] "28" -> "4" [dir=forward tooltip="template-instance"] "15" -> "16" [dir=forward tooltip="usage"] "1" -> "2" [dir=forward tooltip="usage"] "1" -> "5" [dir=forward tooltip="usage"] "1" -> "13" [dir=forward tooltip="usage"] "5" -> "6" [dir=forward tooltip="usage"] "5" -> "5" [dir=forward tooltip="usage"] "5" -> "10" [dir=forward tooltip="usage"] "5" -> "12" [dir=forward tooltip="usage"] "2" -> "3" [dir=forward tooltip="public-inheritance"] "18" -> "19" [dir=forward tooltip="usage"] "6" -> "7" [dir=forward tooltip="usage"] "6" -> "8" [dir=forward tooltip="usage"] "10" -> "11" [dir=forward tooltip="public-inheritance"] "14" -> "15" [dir=forward tooltip="usage"] "14" -> "6" [dir=forward tooltip="usage"] "14" -> "17" [dir=forward tooltip="usage"] "13" -> "14" [dir=forward tooltip="public-inheritance"] "13" -> "18" [dir=forward tooltip="usage"] "13" -> "20" [dir=forward tooltip="usage"] "13" -> "21" [dir=forward tooltip="usage"] "13" -> "31" [dir=forward tooltip="usage"] "23" -> "24" [dir=forward tooltip="public-inheritance"] "21" -> "22" [dir=forward tooltip="usage"] "21" -> "25" [dir=forward tooltip="usage"] "21" -> "27" [dir=forward tooltip="usage"] "21" -> "29" [dir=forward tooltip="usage"] }

end user class handling symbolic representation of an essential condition

Public Functions

inline EssentialCondition()#

default constructor

EssentialCondition(const EssentialCondition&)#

copy constructor

EssentialCondition(const LcOperatorOnUnknown&, const Function&, ECMethod = _undefECMethod)#

basic constructor lcop =g on D (D given by the LcOpOnUnknown !)

EssentialCondition(const LcOperatorOnUnknown&, const TermVector&, ECMethod = _undefECMethod)#

basic constructor lcop = TV on D (D given by the LcOpOnUnknown !)

EssentialCondition(const LcOperatorOnUnknown&, ECMethod = _undefECMethod)#

basic constructor lcop =0 on D (D given by the LcOpOnUnknown !)

EssentialCondition(const LinearForm&, const complex_t& = complex_t(0.))#

constructor from linear form and scalar

EssentialCondition(const TermVector&, const complex_t& = complex_t(0.))#

constructor from linear form and scalar

EssentialCondition(GeomDomain&, const LcOperatorOnUnknown&, const Function&, ECMethod = _undefECMethod)#

basic constructor lcop =0 on D (D given explicitely)

EssentialCondition(GeomDomain&, const LcOperatorOnUnknown&, ECMethod = _undefECMethod)#

basic constructor lcop =0 on D (D given explicitely)

~EssentialCondition()#

destructor

inline const std::vector<OpuValPair> &bcTerms() const#

returns ess.

cond. terms

inline it_opuval begin()#

returns iterator on first term (non const)

inline cit_opuval begin() const#

returns const_iterator on first term (const)

void clear()#

clear object

inline complex_t coefficient() const#

return coefficient of first term if a single term condition

inline std::vector<complex_t> coefficients() const#

return vector of coefficients involved in condition

string_t consistency(bool stop = true) const#

analyze consistency of Essential condition

analyze consistency of Essential condition except LinearForm ones analysis rules: each term of ecTerms_ must be attached to a (non void) domain no more than two domains be defined check structure compatibility if stop = true, program stops on error else returns an error message as string_t return a void string_t if no error

void copy(const EssentialCondition&)#

internal copy tool

inline DiffOpType diffOperator() const#

return first differential operator type involved in condition

inline std::set<DiffOpType> diffOperators() const#

return set of differential operator types involved in condition

inline GeomDomain *domain(number_t i = 1) const#

return domain if single domain condition (may be 0 if none)

inline std::set<GeomDomain*> domains() const#

return set of Domains’s involved in condition

inline const LcOperatorOnUnknown &ecTerms() const#

returns ess.

cond. terms

inline it_opuval end()#

returns iterator on last term (non const)

inline cit_opuval end() const#

returns const_iterator on last term (const)

inline const Function &fun() const#

returns function (const)

inline Function *&funp()#

returns function as pointer (non const)

inline const Function *funp() const#

returns function as pointer (const)

inline bool isHomogeneous() const#

true if = 0 (no function pointer)

inline bool isSingleDomain() const#

true for a single domain B.C

bool isSingleUnknown() const#

true if all terms involve the same unknown

bool isSingleUnknownTV() const#

true if all terms involve the same unknown

inline const TermVector *lfp() const#

returns assembled linear form

string_t name() const#

symbolic name (e.g “u|dom=g”)

string_t nameTV() const#

symbolic name (“tv = c”)

inline number_t nbOfDifOp() const#

number of diff operator involved in condition

inline dimen_t nbOfDomains() const#

number of domains involved in condition

dimen_t nbOfUnknowns() const#

number of unknowns involved in condition

dimen_t nbOfUnknownsTV() const#

number of unknowns involved in condition

inline number_t nbTerms() const#

return the number of terms

EssentialCondition &operator=(const EssentialCondition&)#

assignment

inline EssentialCondition &operator|(GeomDomain &dom)#

restrict BC (all operators) to domain dom using syntax |dom

void print(std::ostream&) const#

print utility

void printTV(std::ostream&) const#

specific print for TermVector EC form

inline void setDomain(GeomDomain &dom)#

restrict BC (all operators) to domain dom

EcType setType()#

set the type of the Essential condition

inline number_t size() const#

returns number of terms

inline EcType type() const#

returns type

const Unknown *unknown(number_t i = 1) const#

return the ith unknown involved (may be 0 if none)

std::set<const Unknown*> unknowns() const#

return set of Unknown’s involved in condition

std::set<const Unknown*> unknownsTV() const#

return set of Unknown’s involved in condition

const Unknown *unknownTV(number_t = 1) const#

return ith unknown for TV form(may be 0 if none)

Public Members

complex_t clf#

constant scalar in lf(u)=clf

ECMethod ecMethod#

method used to build constraints (_dofEC, _internalNodeEC, _momentEC)

Friends

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

print operator