represent geometric information of the cell More...
#include <GridCell.h>
Public Member Functions | |
TGridCell (TRefDesc *refdesc, int reflevel) | |
virtual int | SetVertex (int Vert_i, TVertex *Vert) |
set the pointer to vertex with number i | |
virtual TVertex * | GetVertex (int Vert_i) |
return the pointer to vertex with number i | |
TVertex ** | GetVertices () |
return field of pointers to all vertices | |
virtual int | GetN_Children () |
return number of children | |
virtual int | GetN_Parents () |
return number of parents | |
virtual TBaseCell * | GetChild (int C_i) |
return pointer to child cell with number C_i | |
virtual TBaseCell * | GetParent () |
return pointer to parent cell | |
virtual int | SetParent (TBaseCell *parent) |
set parent | |
virtual int | GetChildNumber (TBaseCell *Me) |
return local number of child Me | |
virtual int | Draw (std::ofstream &dat, double scale, double StartX, double StartY) |
put boundary and interface joints to postscript file | |
virtual int | PS (std::ofstream &dat, double scale, double StartX, double StartY) |
put out postscript data to a file | |
virtual int | MD_raw (std::ofstream &dat) |
put out raw data for MD-Format | |
virtual int | Derefine () |
derefine the cell | |
virtual int | RefDeref () |
refine or derefine the cell according to cell's clipboard | |
virtual int | Gen1RegMarks () |
set marks in neighbour cells in order to maintain 1-regularity | |
virtual int | MakeConfClosure () |
generate conforming closures | |
virtual int | Refine (int RefLevel) |
refine a cell | |
virtual int | RefineMortar (int RefLevel) |
refine a mortar cell | |
virtual int | Gen1RegGrid () |
generate a 2-regular grid | |
virtual int | Ref1Reg (int LocJointNum, TBaseCell *&RefCell) |
set refinement for the neighbour of your parent on joint LocJointNum | |
virtual int | Check1Reg () |
check whether the surroundings of cell is 1-regular | |
virtual int | SetNoRefinement () |
set RefDesc to no refinement | |
virtual int | SetRegRefine () |
set RefDesc to regular refinement | |
virtual int | Set1Refine (int i) |
set RefDesc to adaptive refinement | |
virtual int | IsToRefine () |
check whether a cell should be refined | |
virtual int | ExistChildren () |
check whether exist some children | |
virtual int | LineMidXY (int J_i, int P_j, double &X, double &Y) |
return coordinates of mid point P_j on edge J_i | |
virtual int | LineMidT (int J_i, int SJ_j, double &T_0, double &T_1) |
return parameters on boundary of subedge SJ_j on edge J_i | |
virtual bool | PointInCell (double X, double Y, double Z) |
return whether a point is inside a cell | |
virtual bool | PointInCell (double X, double Y) |
return whether a point is inside a cell | |
virtual double | GetDiameter () |
get diameter of a cell | |
virtual double | GetShortestEdge () |
get shortest edge of a cell | |
virtual double | GetLengthWithReferenceMap () |
return the length of the cell defined with the reference map | |
virtual double | GetMeasure () |
get measure of a cell | |
virtual int | GetGeoLevel () |
get geometry level | |
virtual int | GetSubGridID () |
return subgrid ID | |
virtual int | GetN_BoundaryEdges () |
compute number of edges at the boundary More... | |
virtual int | GetN_BoundaryFaces () |
compute number of faces at the boundary More... | |
virtual int | GetN_BoundaryVertices () |
compute number of vertices at the boundary More... | |
Public Member Functions inherited from TBaseCell | |
TBaseCell (TRefDesc *refdesc) | |
int | SetRefDesc (TRefDesc *newrefdesc) |
set refinement descriptor to newrefdesc | |
TRefDesc * | GetRefDesc () const |
return refinement descriptor | |
TShapeDesc * | GetShapeDesc () const |
return shape descriptor of refinement descriptor | |
Shapes | GetType () const |
return shape type of refinement descriptor | |
Refinements | GetEdgeRef (int i) const |
return refinement descriptor of edge i | |
Refinements | GetFaceRef (int i) |
return refinement descriptor of face i | |
int | SetEdge (int E_i, TEdge *E) |
set the pointer to edge E_i to E | |
TEdge * | GetEdge (int E_i) |
return the pointer to edge with number E_i | |
int | SetJoint (int J_i, TJoint *J) |
set the pointer to face J_i to J | |
TJoint * | GetJoint (int J_i) |
return the pointer to face with number i | |
int | GetN_Vertices () |
return the number of vertices of the cell | |
int | GetN_Edges () |
return the number of edges of the cell | |
int | GetN_Joints () |
return the number of joints | |
int | GetN_Faces () |
return the number of faces of the cell | |
void | SetClipBoard (int value) |
set value in ClipBoard | |
int | GetClipBoard () |
get value from ClipBoard | |
double | Get_hK (int cell_measure) |
get the value of hK More... | |
void | CorrectBoundaryVertices (TVertex **NewVertices, TJoint **NewJoints) |
void | SetReference_ID (int val) |
set reference number to this cell | |
int | GetReference_ID () const |
get reference number of this cell | |
void | SetBd_Part (int val) |
set phase number to this cell | |
int | GetBd_Part () const |
get phase number to this cell | |
void | SetCellIndex (int val) |
set subdomain number to this cell | |
int | GetCellIndex () const |
set subdomain number to this cell | |
void | SetGlobalCellNo (int val) |
set subdomain number to this cell | |
int | GetGlobalCellNo () const |
set subdomain number to this cell | |
void | SetLocalCellNo (int val) |
set subdomain number to this cell | |
int | GetLocalCellNo () const |
set LocalCellNo number to this cell | |
void | SetRegionID (int val) |
set region number to this cell | |
int | GetRegionID () const |
set region number to this cell | |
void | SetAsLayerCell (int val) |
set as LayerCell cell | |
int | IsLayerCell () const |
get LayerCell info | |
void | SetNormalOrientation () |
compute normal orientation w.r.t cell | |
int | GetNormalOrientation (int i) const |
get normal orientation w.r.t cell at i-th joint | |
void | SetClipBoard_Par (int value) |
set value in ClipBoard | |
int | GetClipBoard_Par () |
get value from ClipBoard | |
void | SetSubDomainNo (int val) |
set subdomain number to this cell | |
int | GetSubDomainNo () const |
set subdomain number to this cell | |
void | SetAsOwnCell () |
void | SetAsDependentCell () |
void | SetAsHaloCell () |
bool | IsHaloCell () const |
void | SetAsSubDomainInterfaceCell () |
bool | IsSubDomainInterfaceCell () const |
void | SetAsCrossEdgeCell () |
bool | IsCrossEdgeCell () const |
void | SetAsCrossVertexCell () |
bool | IsCrossVertexCell () const |
bool | IsDependentCell () const |
void | SetN_NeibProcesses (int n) |
int | GetN_NeibProcesses () const |
void | SetNeibProcessesIds (int *Neiblist) |
int * | GetNeibProcessesIds () const |
Protected Attributes | |
TBaseCell ** | Children |
field of pointer to children | |
TBaseCell * | Parent |
pointer to parent cell | |
TVertex ** | Vertices |
field of all vertices | |
int | RefLevel |
grid level on with this cell was generated | |
Protected Attributes inherited from TBaseCell | |
TRefDesc * | RefDesc |
current property of refinement (including shape descriptor) | |
TJoint ** | Joints |
array of all joints | |
int | ClipBoard |
an integer for storing clipboard information | |
int | Reference_ID |
an integer for storing physical reference of cell (e.g. material properties) | |
int | Bd_Part |
an integer for storing boundary part (surface meshes) | |
int | CellIndex |
cell index value in the collection | |
int | GlobalCellNo |
an integer for storing the global cell number | |
int * | normalOrientation |
normal orientation of joints (for each joint this is 1 or -1) | |
int | region |
an integer for storing the region of this cell number | |
int | LayerCell |
an integer for indicating layer cells | |
TEdge ** | Edges |
array of all Edges in 3D | |
int | ClipBoard_Par |
an integer for storing clipboard information in parallel FEspace mapping | |
int | SubDomainNumber |
an integer for storing which subdomain contains this cell | |
int | SubDomainLocalCellNo |
an integer for storing the global cell number | |
bool | OwnCell |
a bool to check this cell is own cell of the SubDomain or not | |
bool | HaloCell |
a bool to check this cell is a halo cell for the SubDomain or not | |
bool | DependentCell |
a bool to check this cell is neibs' halo cell or not | |
bool | SubDomainInterfaceCell |
a bool to check this cell contains SubDomainInterface(s) or not | |
bool | CrossEdgeCell |
a bool to check this cell contains cross edges or not | |
bool | CrossVertexCell |
a bool to check this cell contains cross vertices or not | |
int | N_NeibProcesses |
Number of neib processes for this cell. | |
int * | NeibProcessesIds |
if(N_NeibProcesses), the rank ID of neib processes | |
int | LocalCellNo |
an integer for storing the local cell number (2Phase flows) | |
represent geometric information of the cell
|
virtual |
compute number of edges at the boundary
compute number of edges at the boundary call: ((TGridCell *)cell)->GetN_BoundaryEdges();
|
virtual |
compute number of faces at the boundary
compute number of faces at the boundary
|
virtual |
compute number of vertices at the boundary
compute number of vertices at the boundary BEFORE THIS ROUTINE CAN BE CALLED collection->MarkBoundaryVertices(); has to be called call: ((TGridCell *)cell)->GetN_BoundaryVertices();