MIDAS  0.75
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
List of all members
midaspace::Model Class Reference

#include <geometry.h>

Inheritance diagram for midaspace::Model:
midaspace::Geometry midaspace::ProblemSubject

GENERAL METHODS

 Model (long gid, const Problem *p, MMprocessing mmp)
 CONSTRUCTOR. More...
 
virtual ~Model (void)
 DESTRUCTOR. More...
 
virtual classID give_classid () const
 Returns classID - class identification. More...
 
long give_Nv (void) const
 
const Vertexgive_Vertex (long i) const
 
long give_Ng (void) const
 
const Gelementgive_Gelement (long i) const
 
void read_model_polylines (const char *path, const char *filename)
 nput file with polylines first line: #1 - number of polylines first line of polyline: #1 #2 #3 #4 More...
 
void read_model_MELNIK (void)
 
void transform_to_mesh (void)
 
void generate_mesh_RFbyHN (void)
 
void generate_mesh_primary (void)
 
virtual void print_control (FILE *stream) const
 
const GeometryComponentgive_masterel (int mydim, int mastertype, long masterID) const
 
Pointallocate_point (long gid, const PoinT *coo, char attribs_alloc='n')
 
void findRANofSkewLines (void)
 

Additional Inherited Members

- Public Member Functions inherited from midaspace::Geometry
MMprocessing give_gp (void) const
 
bool give_nodeprop (void) const
 
bool give_elemprop (void) const
 
long give_Npts (void) const
 
long give_Neds (void) const
 
long give_Nfas (void) const
 
long give_Nels (void) const
 
const Pointgive_Pjnt (long i) const
 
const Edgegive_Edge (long i) const
 
const Facegive_Face (long i) const
 
const Elementgive_Elem (long i) const
 
const GPA< Point > * give_Pjnts (void) const
 
const GPA< Edge > * give_Edges (void) const
 
const GPA< Face > * give_Faces (void) const
 
const GPA< Element > * give_Elems (void) const
 
const Pointgive_Pjnt_with_prop (long prp, bool unique) const
 
void add_another_Pjnt (Point *comp)
 
void add_another_Edge (Edge *comp)
 
void add_another_Face (Face *comp)
 
void add_another_Elem (Element *comp)
 
void wdg_another_Elem (Element *comp, long nid)
 
void replace_Pjnt_by (Point *Pold, Point *Pnew)
 invisible and delete old, set ID and assign new, of new More...
 
void kill_damned_elems (void)
 KILL ELEMENTS marked by flag "delete" ; KILL = invisible + delete. More...
 
void letoff_aa (void)
 let off atributes arrays More...
 
void connectivity_allocation (void)
 Function allocates arrays necessary for connectivity assembling. More...
 
void connectivity_assembling (void)
 Function computes connectivity of mesh. More...
 
void VTKCT_assembling (long indx=-1)
 sum counts of VTK cell types More...
 
void aver_elem_circ_assembling (long indx=-1)
 
void anyBeamElem_assembling (long indx=-1)
 
void boubox_assembling (long indx=-1)
 
void geom_stats_assembling (const GeometryComponent *comp)
 
bool connectivity_is_assembled (void) const
 
bool VTKCT_is_assembled (void) const
 
void give_vtk_polydata_counts (long &cl, long &cp) const
 get/compute count of VTK polydata elements More...
 
bool only_vtk_polydata (void) const
 all elements is polydata compatible More...
 
bool only_1d_elements (void) const
 only 1d elements More...
 
double give_aver_elem_circ (void) const
 
long give_anyBeamElem (void) const
 
const PoinTgive_boubox_diff (void) const
 
VTKdataset giveVTKDS (void)
 other More...
 
VTKPDtopology give_VTKPDtopology_of_elem (long i) const
 
void print_info (void) const
 
void print_geom_info (void) const
 print info about geometry of mesh More...
 
 Geometry (long gid, const Problem *p, MMprocessing proc)
 CONSTRUCTOR. More...
 
virtual ~Geometry (void)
 DESTRUCTOR. More...
 
virtual void initialize (void)
 initiate/sets data More...
 
virtual void finitialize (void)
 finalize prepropcessing More...
 
virtual void checkConsistency (void) const
 Checks data consistency. More...
 
void read_addata_VTK (const char *filename, bool sparse)
 
void read_VTK (char DATASET, Stream *stream, bool addata=false, bool sparse=false)
 CORE read of VTK file. More...
 
bool isModel (void) const
 
bool isMesh (void) const
 
void assign_NodeLoad_by_point_ID (const BoundaryCond *bc, long id)
 BC assign assign nodal load to the point by/via ... More...
 
void assign_NodeLoad_by_point_prop (const BoundaryCond *bc, long prop)
 
void assign_NodeLoad_by_point_coords (const BoundaryCond *bc, const PoinT *coords)
 
void assign_BodyLoad_by_elem_ID (const BoundaryCond *bc, long id)
 assign body load to the element by/via ... More...
 
void assign_BodyLoad_by_elem_prop (const BoundaryCond *bc, long prop)
 
void assign_EdgeLoad_by_elem_ID (const BoundaryCond *bc, long id, int indx=-1)
 assign edge load to the edge by/via ... More...
 
void assign_EdgeLoad_by_elem_prop (const BoundaryCond *bc, long prop)
 
void assign_FaceLoad_by_elem_ID (const BoundaryCond *bc, long id, int indx=-1)
 assign face load to the face by/via ... More...
 
void assign_FaceLoad_by_elem_prop (const BoundaryCond *bc, long prop)
 
void assign_FaceLoad_by_face_prop (const BoundaryCond *bc, long prop)
 
void join_geom (Geometry *geom)
 
bool give_3Delement_with_point_inside (const PoinT *coords, const GeometryComponent *&comp, PoinT *nc) const
 Function finds location of point indide of which 3d element is. More...
 
DOFsPerNode give_DOFsPerNode (void)
 
- Public Member Functions inherited from midaspace::ProblemSubject
 ProblemSubject (long gid)
 CONSTRUCTOR. More...
 
 ProblemSubject (long gid, const Problem *owner)
 CONSTRUCTOR. More...
 
virtual ~ProblemSubject ()
 DESTRUCTOR. More...
 
void set_ID (long val)
 
long give_ID () const
 
void set_Pd (const Problem *owner)
 
const Problemgive_Pd (void) const
 
- Protected Attributes inherited from midaspace::Geometry
MMprocessing gp
 
bool nodeprop
 
bool elemprop
 
long origPjntsNum
 
long origElemsNum
 
GPA< PointPjnts
 
GPA< EdgeEdges
 
GPA< FaceFaces
 
GPA< ElementElems
 
bool connectivity_assembled
 when any function changes geometry there are two types of "set" functions a) stat is not activated => assemble for all element b) stat is activated => add one element More...
 
long VTKCTcl
 ELEMENT STATS // VTK cells types - count elements of type: More...
 
long VTKCTct
 
long VTKCTch
 
double aver_elem_circ
 
long anyBeamElem
 
bool boubox_assembled
 
PoinT boubox_min
 
PoinT boubox_max
 
PoinT boubox_diff
 
- Protected Attributes inherited from midaspace::ProblemSubject
long ID
 (global) identification number == position in list of members; zero-based numbering. More...
 
const ProblemPd
 Pointer to owner = parent problem. More...
 

Detailed Description

Definition at line 219 of file geometry.h.

Constructor & Destructor Documentation

midaspace::Model::Model ( long  gid,
const Problem p,
MMprocessing  mmp 
)

CONSTRUCTOR.

Definition at line 922 of file geometry.cpp.

midaspace::Model::~Model ( void  )
virtual

DESTRUCTOR.

Definition at line 927 of file geometry.cpp.

Member Function Documentation

Point * midaspace::Model::allocate_point ( long  gid,
const PoinT coo,
char  attribs_alloc = 'n' 
)
virtual

Implements midaspace::Geometry.

Definition at line 500 of file geometry.cpp.

void midaspace::Model::findRANofSkewLines ( void  )
void midaspace::Model::generate_mesh_primary ( void  )
void midaspace::Model::generate_mesh_RFbyHN ( void  )
virtual classID midaspace::Model::give_classid ( ) const
inlinevirtual

Returns classID - class identification.

Reimplemented from midaspace::ProblemSubject.

Definition at line 231 of file geometry.h.

References midaspace::classModel.

const Gelement* midaspace::Model::give_Gelement ( long  i) const
inline

Definition at line 238 of file geometry.h.

References midaspace::Geometry::Elems.

const GeometryComponent* midaspace::Model::give_masterel ( int  mydim,
int  mastertype,
long  masterID 
) const
long midaspace::Model::give_Ng ( void  ) const
inline

Definition at line 237 of file geometry.h.

References midaspace::Geometry::Elems.

long midaspace::Model::give_Nv ( void  ) const
inline

Definition at line 235 of file geometry.h.

References midaspace::Geometry::Pjnts.

const Vertex* midaspace::Model::give_Vertex ( long  i) const
inline

Definition at line 236 of file geometry.h.

References midaspace::Geometry::Pjnts.

virtual void midaspace::Model::print_control ( FILE *  stream) const
inlinevirtual

Definition at line 249 of file geometry.h.

void midaspace::Model::read_model_MELNIK ( void  )
void midaspace::Model::read_model_polylines ( const char *  path,
const char *  filename 
)

nput file with polylines first line: #1 - number of polylines first line of polyline: #1 #2 #3 #4

#1 polyline id . #2 number of verticeas of polyline . #3 property (0-trmeny,1-kcni,2-nosna) next lines of polyline: three coordinates of vertices

Definition at line 945 of file geometry.cpp.

References _errorr, _openFilePN, midaspace::Geometry::elemprop, midaspace::Geometry::Elems, midaspace::Geometry::Pjnts, midaspace::Elem3D::scan_xyz(), midaspace::Element::set_mprop(), and midaspace::Cell::set_point().

void midaspace::Model::transform_to_mesh ( void  )

The documentation for this class was generated from the following files: