33 #include "EntityMap.h" 34 #include "preprocessor/multi_block_topology/entities/3d/Body.h" 46 void updateSets(
Body *)
const;
63 Body *
New(
const size_t &,
const std::string &);
65 Block *
newBlockPts(
const size_t &,
const size_t &,
const size_t &,
const size_t &,
const size_t &,
const size_t &,
const size_t &,
const size_t &);
68 boost::python::dict
getPyDict(
void)
const;
69 void setPyDict(
const boost::python::dict &);
81 retval=
new B(preprocessor);
84 retval->
Name()=
"f"+boost::lexical_cast<std::string>(getTag());
85 (*this)[getTag()]= retval;
97 size_t old_tag= getTag();
98 Body *retval=
nullptr;
100 retval=
busca(getTag());
104 <<
"; body with identifier: " << tag
105 <<
" already exists. Command ignored." << std::endl;
108 { retval= New<B>(); }
BodyMap(MultiBlockTopology *mbt=nullptr)
Constructor.
Definition: BodyMap.cc:42
Geometric entities container (points, lines, surfaces,...).
Definition: EntityMap.h:43
Finite element model generation tools.
Definition: Preprocessor.h:59
Model geometry manager.
Definition: MultiBlockTopology.h:68
bool conciliaNDivs(void)
Conciliates the number of divisions of the lines.
Definition: BodyMap.cc:74
std::deque< int > getNDivErrorTags(void) const
Returns the indentifiers of the edges that have an incompatible number of divisions.
Definition: BodyMap.cc:106
std::deque< const Edge * > getNDivErrors(void) const
Returns a list with the edges that have an incompatible number of divisions.
Definition: BodyMap.cc:81
std::string & Name(void)
Return a reference to the object name.
Definition: NamedEntity.h:52
Block * newBlockPts(const size_t &, const size_t &, const size_t &, const size_t &, const size_t &, const size_t &, const size_t &, const size_t &)
New block.
Definition: BodyMap.cc:128
boost::python::list getNDivErrorTagsPy(void) const
Returns the indentifiers of the edges that have an incompatible number of divisions.
Definition: BodyMap.cc:116
Six-faced body.
Definition: Block.h:40
virtual std::string getClassName(void) const
Returns demangled class name.
Definition: EntityWithOwner.cc:90
boost::python::dict getPyDict(void) const
Return a Python dictionary with the object members values.
Definition: BodyMap.cc:150
const Preprocessor * getPreprocessor(void) const
Return a pointer to preprocessor.
Definition: ModelComponentContainerBase.cc:54
void setPyDict(const boost::python::dict &)
Set the values of the object members from a Python dictionary.
Definition: BodyMap.cc:166
Body container.
Definition: BodyMap.h:43
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
Body * New(void)
Creates a new body.
Definition: BodyMap.h:75
Six-faced solid.
Definition: Body.h:71
double getAverageVolume(void) const
Return the average volume of the bodies.
Definition: BodyMap.cc:140
bool checkNDivs(void) const
Checks that the number of divisions of the edges are compatible.
Definition: BodyMap.cc:97
Body * busca(const Indice &)
Return a pointer to the geometry entity whose identifier is passed as parameter.
Definition: ModelComponentContainer.h:78