MIDAS  0.75
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
Public Member Functions | Protected Attributes | List of all members
midaspace::Triangle Class Reference

#include <cell.h>

Inheritance diagram for midaspace::Triangle:
midaspace::FElement midaspace::Element midaspace::Cell midaspace::GeometryComponent midaspace::GeometrySubject midaspace::ProblemSubject

Public Member Functions

 Triangle (long gid, long oid, const Geometry *mg, bool aa, long dom, long lid)
 CONSTRUCTOR ord nn ne nf. More...
 
 Triangle (const Quadrangle *src, bool firstr, bool firstdiag)
 CONSTRUCTOR COPY. More...
 
virtual ~Triangle ()
 DESTRUCTOR. More...
 
virtual classID give_classid () const
 Returns classID - class identification. More...
 
virtual void checkConsistency (void) const
 Checks data consistency. More...
 
virtual DOFsPerNode give_DOFsPerNode_default (void) const
 give default DOFs per node More...
 
virtual SStype give_SSType_default (void) const
 give default type of stress state More...
 
virtual SPRpatchType give_spr_patch_type (void) const
 return type of element for OOFEM solver More...
 
virtual long give_edge_nodes (const Point **&edgnodes) const
 
virtual long give_face_nodes_edges (const Point **&facnodes, const Edge **&facedges) const
 
virtual double give_ssstate (Dvctr *data, SStype SST, RVType rvtype, char type, long step, const Node *node=NULL)
 give stress-strain state More...
 
virtual void compute_maxSigmaEq (void)
 
virtual double give_quality (void) const
 compute quality of element More...
 
virtual double give_volume (void) const
 compute volume of element More...
 
void compute_rotMg2l (void)
 activate rotMg2l More...
 
virtual void rotate2local (Dvctr *data)
 
virtual void give_ip_coords_global (IntPointSet ips, int i, PoinT &coords) const
 
void read_input (const char *&str, femFileFormat fff)
 
void read_output_OOFEM (FILE *stream, long step)
 
void read_output_SIFEL (FILE *stream, long step, ResultTypesAtElem rt)
 
- Public Member Functions inherited from midaspace::FElement
 FElement (classID mecg, long gid, long oid, const Geometry *mg, long ord, long nn, long ne, long nf, bool aa, long dom, long lid)
 CONSTRUCTOR. More...
 
 FElement (classID mecg, const FElement *src)
 CONSTRUCTOR COPY. More...
 
virtual ~FElement ()
 DESTRUCTOR. More...
 
void attributes_allocation (const GelemAttribs *masterat)
 
virtual void initialize (void)
 initiate/sets data More...
 
const MeshMsh (void) const
 
virtual void set_model_prop (long val, const Model *model, bool flag=false)
 
int give_nDOFs (void) const
 give number of DOFs More...
 
IntPointSet give_IPset_comp (Solver sol) const
 basic set = for displacement computation More...
 
IntPointSet give_IPset_rslts (Solver sol) const
 basic set = for results More...
 
int give_rslt_NIP (Solver sol) const
 
IntPointSet give_IPset2 (void) const
 higher set = for displacement^2 computation, or mass matrix or sigma error ... More...
 
void set_lid (long val)
 
int give_ord (void) const
 
long give_nnoed (int i) const
 
long give_domain (void) const
 
long give_lid (void) const
 
const Gelementgive_mdl_masterel (void) const
 
void set_node (long i, long nid)
 ATRIBUTES. More...
 
void set_node (long i, const Node *nod)
 
const Nodegive_node (long i) const
 
long give_parent_id (void) const
 
long give_parent_prop (void) const
 
void set_regid (long val)
 
long give_regid (void) const
 
void allocate_results (void)
 RESULTS. More...
 
void add_result (Array *rslt, long step, ResultTypesAtElem rt)
 
void set_result (long s, double *rslt, long step, ResultTypesAtElem rt)
 
void set_result (double rslt, long step, ResultTypesAtElem rt)
 
void set_result (const VectoR *rslt, long step, ResultTypesAtElem rt)
 
const Dscalgive_results_ds (long step, ResultTypesAtElem rt) const
 
const Dvctrgive_results_dv (long step, ResultTypesAtElem rt) const
 
const Dmtrxgive_results_dm (long step, ResultTypesAtElem rt) const
 
const Arraygive_results (long step, ResultTypesAtElem rt) const
 
void setup_maxSigmaEq (void)
 
double give_CSusage_elast (void)
 
double give_CSusage_elast_rel (void)
 
int give_CSusage_elast_bool (void)
 
void check_rslts (long step, ResultTypesAtElem rt) const
 
double fillupbyzero (Dvctr *data, SStype SST) const
 
long give_result_ncomp (long time_step, ResultTypesAtElem rte) const
 
void initialize_CSL (int c, long *fID, long *tCSL)
 initializes Constant Surface Load More...
 
virtual void print_row (FILE *stream, femFileFormat fff, bool endline=true, long did=0) const
 print element row output for OOFEM More...
 
void read_nodes (const char *&str, femFileFormat fff)
 print element row output for VTK More...
 
bool is_cmfr (void)
 
- Public Member Functions inherited from midaspace::Element
 Element (classID mecg, long gid, long oid, long prop, const Geometry *mg, long nn, long ne, long nf)
 CONSTRUCTOR. More...
 
 Element (classID mecg, const Element *src)
 CONSTRUCTOR COPY. More...
 
virtual ~Element ()
 DESTRUCTOR. More...
 
VTKPDtopology give_VTKPDtopology (void) const
 
const Facedgegive_same_dimension_facedge (void) const
 Returns edge/face/volume of same dimension as receiver (Beam returns edge, etc.) More...
 
void set_mprop (long val)
 *** SET *** More...
 
void set_prop_node_inher (bool everynode)
 inherit property from element to nodes, only if node has one superelem More...
 
void set_fullhinge_at (const Point *p)
 
ElemAttribsgive_elemAttribs (void)
 
const ElemAttribsgive_elemAttribs (void) const
 
bool has_fullhinge_at (int point) const
 
void connectivity_assembling (bool re=false)
 Function assembles connectivity between element and its nodes, edges and faces (which are allocated if needed) More...
 
void connectivity_removing (void)
 Function removes connectivity between element and its components == nodes, edges and faces. More...
 
void set_load (int i, int indx=-1)
 
bool is_point_on (const PoinT *point, const GeometryComponent *&comp, PoinT *nc) const
 Function finds out mutual position of point with coords and 'element'. More...
 
void switch_node_pointer_in_all_components (Point *slave, Point *master, bool duplcheck)
 switch node pointer from oldnode/slave to newnode/master on this and all components (edges, faces) More...
 
virtual void switch_node_pointer (Point *slave, Point *master, bool duplcheck)
 switch node pointer form slave to master More...
 
bool isBeam (void) const
 
bool isTruss (void) const
 
void print_row_VTK (FILE *stream) const
 print element row output for VTK More...
 
virtual void print_row_VTX (char *str) const
 
- Public Member Functions inherited from midaspace::Cell
CellGeometry give_cellGeom (void) const
 
int give_dimension (void) const
 return type of element geometry, is identical with class derived from FElement More...
 
const PoinTgive_centercoords (void) const
 
double give_circum (void) const
 
double give_lav (void) const
 
double give_GeomWeight1deg (void) const
 
bool is_point_in_sphere (const PoinT *point) const
 
double give_characteristic_size (void) const
 
ComponentGeometrygive_cg (void)
 
 Cell (classID mecg, long gid, long oid, long prop, const Geometry *mg, long nn, long ne, long nf)
 CONSTRUCTOR. More...
 
 Cell (classID mecg, const Cell *src)
 CONSTRUCTOR COPY. More...
 
virtual ~Cell ()
 DESTRUCTOR. More...
 
void check_connectivity_loc (void) const
 
void set_point (long i, const Point *val)
 ATRIBUTES. More...
 
void set_point (long i, long pid)
 
void set_edge (long i, const Edge *val)
 
void set_face (long i, const Face *val)
 
long give_nno (void) const
 
long give_ned (void) const
 
long give_nfa (void) const
 
const Pointgive_point (long i) const
 
const Edgegive_edge (long i) const
 
const Facegive_face (long i) const
 
const GPA< const Point > * give_points (void) const
 
const GPA< const Edge > * give_edges (void) const
 
const GPA< const Face > * give_faces (void) const
 
long give_point_indx (const Point *p) const
 
virtual void switch_myself_at_connectivity (Cell *master)
 switch receiver to master in connectivity system More...
 
bool switch_edge_pointer (Edge *slave, Edge *master)
 switch pointer to component edge - slave is replaced be master More...
 
bool switch_face_pointer (Face *slave, Face *master)
 switch pointer to component face - slave is replaced be master More...
 
void setup_duplicity_master (Cell *val)
 
bool invisible_duplicated (char flag='a')
 make invisible if duplicated More...
 
bool has_same_geom_with (Cell *slave) const
 ASSORTED check same geometry. More...
 
bool check_collapse (void)
 check any two nodes are same = element is collapsed More...
 
bool cross_abscissa_node (const PoinT *a1, const PoinT *a2, long cunn, const Point **unnod, const Point *&nod, double &ksi, PoinT *cp) const
 Function finds out whether some element node lays on abscissa. More...
 
int cross_abscissa_face (const PoinT *a1, const PoinT *a2, long cunf, const Face **unfac, const Cell *&comp, PoinT *nc, PoinT *cp)
 Function finds out whether abscissa intersects any face. More...
 
- Public Member Functions inherited from midaspace::GeometryComponent
 GeometryComponent (const Geometry *owner, long gid, long oid, long prop)
 CONSTRUCTOR. More...
 
 GeometryComponent (const GeometryComponent *src)
 CONSTRUCTOR COPY. More...
 
virtual ~GeometryComponent ()
 DESTRUCTOR. More...
 
virtual void finitialize (void)
 finalize preprocessing More...
 
void reset_mprop (long val)
 
bool checkset_mprop (long val)
 
void set_origID (long val)
 
void set_delete_flag (bool val)
 
long give_mproperty () const
 *** GET *** More...
 
const Lvctrgive_mproperty_ptr (void) const
 
long give_mpropertyORzero (void) const
 
long give_mproperty_cnt (void) const
 
bool has_mproperty (long prop) const
 
long give_origID () const
 
bool give_delete_flag () const
 
Attributesgive_attributes (void)
 
const Attributesgive_attributes (void) const
 
bool Parallel (void) const
 *** FEMesh *** More...
 
long NumDomains (void) const
 
void check_connectivity (void) const
 
void mg_connectivity_assembling (void)
 
- Public Member Functions inherited from midaspace::GeometrySubject
 GeometrySubject (long gid)
 CONSTRUCTOR. More...
 
 GeometrySubject (long gid, const Problem *owner)
 CONSTRUCTOR. More...
 
 GeometrySubject (long gid, const Geometry *owner)
 CONSTRUCTOR. More...
 
virtual ~GeometrySubject ()
 DESTRUCTOR. More...
 
void set_Geom (const Geometry *owner)
 
void reset_Geom (const Geometry *owner)
 
const Geometrygive_Geom (void) const
 
- 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

DmtrxrotMg2l
 
- Protected Attributes inherited from midaspace::FElement
long domain
 
long lid
 
const Gelementmdl_masterel
 
double * maxSigmaEq
 
- Protected Attributes inherited from midaspace::Cell
ComponentGeometrycg
 
- Protected Attributes inherited from midaspace::GeometryComponent
Lvctr mproperty
 
long origid
 
bool fordelete
 
Attributesattributes
 ATTRIBUTES. More...
 
- Protected Attributes inherited from midaspace::GeometrySubject
const GeometryGeom
 Pointer to owner == parent geometry. More...
 
- 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...
 

Additional Inherited Members

- Public Attributes inherited from midaspace::Cell
GPA< const Pointpoints
 
GPA< const Edgeedges
 
GPA< const Facefaces
 
bool connectivity_assembled
 
Cellduplmaster
 
- Protected Member Functions inherited from midaspace::FElement
virtual void integrate_duplicated_cell (const Element *slave)
 DUPLICITY. More...
 
- Protected Member Functions inherited from midaspace::Element
ElemAttribselemAttribs ()
 Gives attribute attributes, data type changed to ElemAttribs*. More...
 
const ElemAttribselemAttribs () const
 
- Protected Member Functions inherited from midaspace::Cell
virtual void integrate_duplicated_cell (const Cell *slave)
 

Detailed Description

Definition at line 803 of file cell.h.

Constructor & Destructor Documentation

midaspace::Triangle::Triangle ( long  gid,
long  oid,
const Geometry mg,
bool  aa,
long  dom,
long  lid 
)
inline

CONSTRUCTOR ord nn ne nf.

Definition at line 810 of file cell.h.

References rotMg2l.

midaspace::Triangle::Triangle ( const Quadrangle src,
bool  firstr,
bool  firstdiag 
)
virtual midaspace::Triangle::~Triangle ( )
inlinevirtual

DESTRUCTOR.

Definition at line 814 of file cell.h.

References rotMg2l.

Member Function Documentation

void midaspace::Triangle::checkConsistency ( void  ) const
virtual
void midaspace::Triangle::compute_maxSigmaEq ( void  )
virtual
void midaspace::Triangle::compute_rotMg2l ( void  )

activate rotMg2l

SS(souradny system) se meni(rotuje) z puvodniho(global) do noveho(local), takze: nove souradnice bodu jsou – coord_local = rotMg2l * coord_glob nove tensor napeti je – sigma_local = rotMg2l_T * sigma_glob * rotMg2l.

  • rotacni matice obecne je pro rotaci bodu, narozdil od zde pouzivane rotace SS takze obecne pouzivana rotmtrx je transponovana rotMg2l viz rotace.txt

Definition at line 2715 of file cell.cpp.

References midaspace::VectoR::beP2P(), midaspace::VectoR::beVectProduct(), midaspace::Dmtrx::copy_row(), midaspace::VectoR::normalize(), midaspace::Cell::points, and rotMg2l.

Referenced by read_output_OOFEM().

virtual classID midaspace::Triangle::give_classid ( ) const
inlinevirtual

Returns classID - class identification.

Reimplemented from midaspace::ProblemSubject.

Definition at line 817 of file cell.h.

References midaspace::classTriangle.

DOFsPerNode midaspace::Triangle::give_DOFsPerNode_default ( void  ) const
virtual
long midaspace::Triangle::give_edge_nodes ( const Point **&  edgnodes) const
virtual
long midaspace::Triangle::give_face_nodes_edges ( const Point **&  facnodes,
const Edge **&  facedges 
) const
virtual
void midaspace::Triangle::give_ip_coords_global ( IntPointSet  ips,
int  i,
PoinT coords 
) const
virtual
double midaspace::Triangle::give_quality ( void  ) const
virtual

compute quality of element

Reimplemented from midaspace::Element.

Definition at line 2691 of file cell.cpp.

References midaspace::Element::elemAttribs(), midaspace::Cell::give_edge(), midaspace::Cell::give_lav(), and midaspace::FElement::give_ord().

virtual SPRpatchType midaspace::Triangle::give_spr_patch_type ( void  ) const
inlinevirtual

return type of element for OOFEM solver

Reimplemented from midaspace::FElement.

Definition at line 828 of file cell.h.

References midaspace::SPRPT_2d.

double midaspace::Triangle::give_ssstate ( Dvctr data,
SStype  SST,
RVType  rvtype,
char  type,
long  step,
const Node node = NULL 
)
virtual
SStype midaspace::Triangle::give_SSType_default ( void  ) const
virtual
virtual double midaspace::Triangle::give_volume ( void  ) const
inlinevirtual
void midaspace::Triangle::read_input ( const char *&  str,
femFileFormat  fff 
)
virtual
void midaspace::Triangle::read_output_OOFEM ( FILE *  stream,
long  step 
)
virtual

IntPointSet

HEAD

STRAIN

global

local

HEAD

HEAD

STRAIN

STRESS

YIELDING

HEAD

STRAIN

STRESS

YIELDING

Reimplemented from midaspace::FElement.

Definition at line 2783 of file cell.cpp.

References _errorr, _errorr3, _errorr4, midaspace::FElement::add_result(), CASE, compute_rotMg2l(), midaspace::ECN_convert_ips_triangle(), midaspace::Element::elemAttribs(), errol, midaspace::FET_OOFEM_RerShell, midaspace::FET_OOFEM_Tr_Shell01, midaspace::FET_OOFEM_TrPlaneStress2d, midaspace::FET_OOFEM_TrPlaneStress2dRot, midaspace::FETSet_set2e(), midaspace::FFF_OOFEM, midaspace::FP_scan_array(), FP_scan_expected_line_exit, FP_scan_expected_word_exit, midaspace::FP_skip_expected_string(), midaspace::FP_skip_line(), midaspace::Problem::give_analgroup(), midaspace::ElemAttribs::give_cs(), midaspace::FElement::give_IPset_rslts(), midaspace::ElemAttribs::give_mat(), midaspace::CrossSection::give_nlayers(), midaspace::Problem::give_P_OOFEM_ver(), midaspace::Dmtrx::give_ptr2val(), midaspace::FElement::give_results(), midaspace::FElement::give_results_dm(), midaspace::ProblemSubject::ID, midaspace::IntPointSet_give_number_ips(), midaspace::Material::isOOFEMplast(), midaspace::isZero(), midaspace::OOFEM_output_scan_elem_head(), midaspace::OOFEM_output_scan_GP(), midaspace::GeometryComponent::origid, midaspace::ProblemSubject::Pd, midaspace::Dmtrx::resize_ignore_vals(), rotMg2l, midaspace::RTE_global_strain, midaspace::RTE_global_stress, midaspace::RTE_layered_strain, midaspace::RTE_layered_stress, midaspace::RTE_localOO_strain, midaspace::RTE_localOO_stress, midaspace::RTE_plaststrain, midaspace::SOL_OOFEM, midaspace::SP_scan_array(), and SP_scan_expected_word_exit.

void midaspace::Triangle::read_output_SIFEL ( FILE *  stream,
long  step,
ResultTypesAtElem  rt 
)
virtual
void midaspace::Triangle::rotate2local ( Dvctr data)
virtual

Definition at line 2740 of file cell.cpp.

References midaspace::Dvctr::tnsrRotAxisZangle().

Referenced by give_ssstate().

Member Data Documentation

Dmtrx* midaspace::Triangle::rotMg2l
protected

Definition at line 806 of file cell.h.

Referenced by compute_rotMg2l(), read_output_OOFEM(), Triangle(), and ~Triangle().


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