#include <geometry.h>
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 Vertex * | give_Vertex (long i) const |
long | give_Ng (void) const |
const Gelement * | give_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 GeometryComponent * | give_masterel (int mydim, int mastertype, long masterID) const |
Point * | allocate_point (long gid, const PoinT *coo, char attribs_alloc='n') |
void | findRANofSkewLines (void) |
Additional Inherited Members | |
![]() | |
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 Point * | give_Pjnt (long i) const |
const Edge * | give_Edge (long i) const |
const Face * | give_Face (long i) const |
const Element * | give_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 Point * | give_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 PoinT * | give_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) |
![]() | |
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 Problem * | give_Pd (void) const |
![]() | |
MMprocessing | gp |
bool | nodeprop |
bool | elemprop |
long | origPjntsNum |
long | origElemsNum |
GPA< Point > | Pjnts |
GPA< Edge > | Edges |
GPA< Face > | Faces |
GPA< Element > | Elems |
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 |
![]() | |
long | ID |
(global) identification number == position in list of members; zero-based numbering. More... | |
const Problem * | Pd |
Pointer to owner = parent problem. More... | |
Definition at line 219 of file geometry.h.
midaspace::Model::Model | ( | long | gid, |
const Problem * | p, | ||
MMprocessing | mmp | ||
) |
CONSTRUCTOR.
Definition at line 922 of file geometry.cpp.
|
virtual |
DESTRUCTOR.
Definition at line 927 of file geometry.cpp.
|
virtual |
Implements midaspace::Geometry.
Definition at line 500 of file geometry.cpp.
void midaspace::Model::findRANofSkewLines | ( | void | ) |
void midaspace::Model::generate_mesh_primary | ( | void | ) |
Definition at line 1256 of file geometry.cpp.
References _openFilePNS, midaspace::Geometry::connectivity_assembling(), midaspace::Geometry::Edges, midaspace::Geometry::Elems, errol, midaspace::Geometry::Faces, midaspace::FFF_T3d, midaspace::FiLe::give_base(), midaspace::ProblemSubject::give_ID(), midaspace::Problem::give_IN_file_bgm(), midaspace::Problem::give_IN_meshGen_elemSize(), midaspace::FiLe::give_name(), midaspace::FiLe::give_name_or_null(), midaspace::Problem::give_OUT_moFILE(), midaspace::Problem::give_P_mesher(), midaspace::Problem::give_P_mesherbinary(), midaspace::FiLe::give_path(), midaspace::mesh_generate_T3d(), midaspace::MGT_T3d, midaspace::ProblemSubject::Pd, midaspace::Geometry::Pjnts, midaspace::StdoutDriver::print_info_message(), midaspace::StdoutDriver::print_info_time_green_ok(), midaspace::SODE_end_green_ok, midaspace::SODE_start_blue_arrow, and midaspace::Problem::sodriver().
Referenced by transform_to_mesh().
void midaspace::Model::generate_mesh_RFbyHN | ( | void | ) |
Definition at line 1227 of file geometry.cpp.
References midaspace::Geometry::add_another_Elem(), midaspace::Geometry::connectivity_assembling(), midaspace::Geometry::Elems, errol, midaspace::PolyLine::generate_mesh_RFbyHN(), midaspace::Problem::give_Mesh(), midaspace::ProblemSubject::Pd, midaspace::GPA< T >::resize(), and midaspace::Geometry::wdg_another_Elem().
Referenced by transform_to_mesh().
|
inlinevirtual |
Returns classID - class identification.
Reimplemented from midaspace::ProblemSubject.
Definition at line 231 of file geometry.h.
References midaspace::classModel.
|
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 |
|
inline |
Definition at line 237 of file geometry.h.
References midaspace::Geometry::Elems.
|
inline |
Definition at line 235 of file geometry.h.
References midaspace::Geometry::Pjnts.
|
inline |
Definition at line 236 of file geometry.h.
References midaspace::Geometry::Pjnts.
|
inlinevirtual |
Definition at line 249 of file geometry.h.
void midaspace::Model::read_model_MELNIK | ( | void | ) |
Definition at line 1001 of file geometry.cpp.
References _errorr, _errorr6, _openFilePNS, _warningg4, _warningg5, midaspace::GPA< T >::add(), midaspace::PolyLine::add_point(), midaspace::Elem3D::dvd(), midaspace::Geometry::elemprop, midaspace::Geometry::Elems, errol, midaspace::FP_scan_expected_word(), midaspace::FP_scan_word(), midaspace::FP_skip_space(), midaspace::Point::give_coord(), midaspace::Cell::give_lav(), midaspace::Problem::give_melnik(), midaspace::Cell::give_nno(), midaspace::Cell::give_point(), midaspace::Predp::id, midaspace::Predp::is_my_ch(), midaspace::Predp::length(), midaspace::Predp::name, midaspace::Predp::nk, midaspace::Predp::nl, midaspace::ProblemSubject::Pd, midaspace::Geometry::Pjnts, midaspace::Predp::points, midaspace::Elem3D::scan_xyz(), midaspace::Element::set_mprop(), midaspace::Elem3D::x, and midaspace::Elem3D::z.
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 | ) |
Definition at line 1193 of file geometry.cpp.
References errol, generate_mesh_primary(), generate_mesh_RFbyHN(), midaspace::Problem::give_cMesh(), midaspace::Geometry::give_gp(), midaspace::Problem::give_IN_meshGen_elemSize(), midaspace::Geometry::gp, midaspace::Mesh::initialize(), midaspace::MMP_primary, midaspace::MMP_RFbyHN, midaspace::MMP_secondary, midaspace::ProblemSubject::Pd, midaspace::Mesh::read_mesh_equal_to_model(), midaspace::Mesh::read_mesh_T3d(), and midaspace::Mesh::set_Master_model().