Class xlifepp::Space#

class Space#

Inheritence diagram for xlifepp::Space:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "2" [label="xlifepp::FeSpace" tooltip="xlifepp::FeSpace"] "6" [label="xlifepp::FeSubSpace" tooltip="xlifepp::FeSubSpace"] "3" [label="xlifepp::ProdSpace" tooltip="xlifepp::ProdSpace"] "4" [label="xlifepp::SpSpace" tooltip="xlifepp::SpSpace"] "1" [label="xlifepp::Space" tooltip="xlifepp::Space" fillcolor="#BFBFBF"] "5" [label="xlifepp::SubSpace" tooltip="xlifepp::SubSpace"] "2" -> "1" [dir=forward tooltip="public-inheritance"] "6" -> "5" [dir=forward tooltip="public-inheritance"] "3" -> "1" [dir=forward tooltip="public-inheritance"] "4" -> "1" [dir=forward tooltip="public-inheritance"] "5" -> "1" [dir=forward tooltip="public-inheritance"] }

Collaboration diagram for xlifepp::Space:

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

base class of spaces

Subclassed by xlifepp::FeSpace, xlifepp::ProdSpace, xlifepp::SpSpace, xlifepp::SubSpace

Public Functions

Space(const GeomDomain &dom, const Interpolation &in, const string_t &na, bool opt = true)#

constructor from domain and Interpolation (FeSpace)

constructor of Fe space (from domain and interpolation) if opt=true, dof numbering is optimized to reduce the matrix bandwith

Space(const GeomDomain &dom, const std::vector<number_t> &dofids, Space &sp, const string_t &na = "")#

constructor from GeomDomain, dofIds list and Space (SubSpace)

constructor of subspace from domain, dof numbers list and parent space dofids is the list of dof number ids linked to domain g this constructor is usefull in case of subspace of subspace

Space(const GeomDomain &dom, Space &sp, const string_t &na = "")#

constructor from GeomDomain and Space (SubSpace)

inline Space(const Space &V)#

copy constructor (shared pointers!)

Space(const SpectralBasis &spb, const string_t &na)#

constructor of spectral space from explicit spectral basis

Space(const std::vector<number_t> &dofids, Space &sp, const string_t &na = "")#

constructor from dofIds list and Space (SubSpace)

virtual ~Space()#

destructor

inline virtual void builddofid2rank() const#

construct the map dofid2rank from dofs list

inline virtual void buildgelt2elt() const#

construct the map gelt2elt from elements list

void buildSpFun(const GeomDomain &dom, const Function &f, number_t nbFun, dimen_t dimFun, const string_t &na)#

real constructor of analytic functions spectral space

Space *buildSubspaces(const std::vector<const GeomDomain*> &doms, std::vector<Space*> &subspaces)#

build subspaces from a list of subdomains and the largest subspace

build subspaces of current space from a list of subdomains, return list of spaces (subspaces) and returns the largest space (pointer to) this function:

  • travel along domains

  • identify the largest geometric domain

  • build the largest subspace

  • create subspace related to each domain if it does not exist

  • create dofs numbering between domain subspaces ands largest subspace

dofs numbering: whole space largest subspace domain subspace 1 5 2 2 3 1 3 1 4 5

inline SobolevType conformingSpace() const#

returns space conformity

SubSpace *createSubSpace(const GeomDomain &dom, Space &sp, const string_t &na)#

actual subspace constructor

void createSubSpaces(const std::vector<const GeomDomain*> &doms, std::vector<Space*> &subspaces)#

create subspaces of current space from a list of subdomains

inline dimen_t dimDomain() const#

returns dimension of space related domain

inline dimen_t dimFun() const#

returns dimension of basis functions

inline dimen_t dimPoint() const#

returns dimension of points

virtual number_t dimSpace() const#

space dimension (number of dofs)

virtual const Dof &dof(number_t n) const#

return n-th dof (n=1,…)

virtual number_t dofId(number_t n) const#

return the n-th DoF id of space

inline virtual const std::map<number_t, number_t> &dofid2rank() const#

return the map dof to rank, built on fly (only for FeSpace and SubSpace)

virtual std::vector<number_t> dofIds() const#

return the DoF ids on space

inline const GeomDomain *domain() const#

returns space related domain

inline virtual const Element &element(GeomElement *gelt) const#

access to element associated to a geomelement

inline virtual const Element &element(number_t k) const#

access to k-th (k>=0) element for FESpace and FESubspace only

inline virtual const Element *element_p(GeomElement *gelt) const#

access to element (pointer) associated to a geomelement

inline virtual const Element *element_p(number_t k) const#

access to k-th element (pointer) for FESpace and FESubspace only

inline virtual const std::vector<number_t> &elementDofs(number_t k) const#

access to dofs ranks (local numbering) of k-th element for FESpace and FESubspace only

inline virtual std::vector<number_t> elementParentDofs(number_t k) const#

access to dofs ranks (parent numbering) of k-th element for FESpace and FESubspace only

virtual bool extensionRequired() const#

true if space has no trace space

inline virtual const Point &feDofCoords(number_t k) const#

return coordinates of dot as a point (may be virtual coordinates when not a Lagrange dof)

inline virtual const std::vector<FeDof> &feDofs() const#

access to vector of fedofs

virtual FeSpace *feSpace()#

access to child fespace object

virtual const FeSpace *feSpace() const#

access to child fespace object (const)

virtual const FeSubSpace *feSubSpace() const#

access to child fesubspace object (const)

std::vector<Space*> findSubSpaces(const Space *sp)#

find subspaces linked to a space

std::vector<Space*> findSubSpaces(Space *sp)#

find subspaces linked to a space

virtual bool include(const Space *sp) const#

return true if space is included in current space

inline virtual const Interpolation *interpolation() const#

return pointer to interpolation

virtual bool isFE() const#

true if FE space or FeSubspace

virtual bool isSpectral() const#

true if spectral space

inline virtual Dof &locateDof(const Point &P) const#

< locate Lagrange dof nearest a given point (only for FeSpace)

inline string_t name() const#

returns space name

virtual number_t nbDofs() const#

number of dofs (a dof may be a vector dof)

inline virtual number_t nbOfElements() const#

number of elements for FESpace and FESubspace only

inline virtual number_t numElement(GeomElement *gelt) const#

access to element number associated to a geomelement

inline virtual void print(PrintStream &os) const#

print utility

virtual void print(std::ostream &out) const#

print utility

inline void printSpaceInfo(PrintStream &os) const#

print utility

void printSpaceInfo(std::ostream &out) const#

print utility

inline virtual const std::set<RefElement*> &refElements() const#

access to set of pointer to RefElement involved in FESpace and FESubspace only

virtual std::pair<number_t, number_t> renumberDofs()#

optimize dofs numbering to reduce matrix bandwith

virtual Space *rootSpace()#

access to root space pointer

virtual const Space *rootSpace() const#

access to root space pointer (const)

inline virtual void shiftDofs(number_t n)#

shift dofs numbering from n (special utility for SpSpace)

inline const Space *space() const#

returns true space object

inline const SpaceInfo *spaceInfo() const#

returns true space object

virtual const SpSpace *spSpace() const#

access to child spspace object (const)

virtual StrucType strucType() const#

return structure type of basis function (scalar or vector)

virtual SubSpace *subSpace()#

access to SubSpace from Space class

virtual const SubSpace *subSpace() const#

access to child subspace object (const)

inline SpaceType typeOfSpace() const#

returns type of space

SpaceType typeOfSubSpace() const#

returns type of sub-space

virtual ValueType valueType() const#

return value type of basis function (real or complex)

Public Members

mutable bool global#

declare space as global, if true forbid deletion of pointer space_p

Public Static Functions

static void clearGlobalVector()#

delete all space objects

static Space *findSpace(const string_t &na)#

find space by its name

static const Space *findSubSpace(const GeomDomain *dom, const Space *sp)#

find subspace in list

static Space *findSubSpace(const GeomDomain *dom, Space *sp)#

find subspace in list

static inline void printAllSpaces(PrintStream &os)#

output all spaces in memory

static void printAllSpaces(std::ostream &out)#

output all spaces in memory

Public Static Attributes

static std::vector<Space*> theSpaces#

unique list of defined spaces

Friends

friend std::ostream &operator<<(std::ostream &out, const Space &sp)#

output space characteristics