hp2FEM  0.1
Public Member Functions | Public Attributes
Model Class Reference

Control class that aggregates all the features and ttributes of a discrete model and provides the interfaces for other objects to access the discrete model's components. More...

#include <Model.h>

Collaboration diagram for Model:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Model ()
 Default constructor.
 Model (Model &Instance)
 Copy-initializer constructor. Copies the contents of Instance for the object.
 ~Model ()
 Destructor.
Modeloperator= (Model &Instance)
 Copies the contents of Instance for the object.
 operator Nodes & ()
 Cast to Nodes. Returns the attribute of this class that is an object of the Nodes class which stores the coordinates of the discrete model.
 operator DOFs & ()
 Cast to DOFs. Returns the attribute of this class that is an object of the DOFs class.
 operator MeshTopology & ()
 Cast to MeshTopology. Returns the attribute of this class that is an object of the MeshTopology class.
 operator Equations & ()
 Cast to Equations. Returns the attribute of this class that is an object of the Equations class.
 operator FEGroups & ()
 Cast to FEGroups. Returns the attribute of this class that is an object of the FEGroups class.
 operator LoadSets & ()
 Cast to LoadSets. Returns the attribute of this class that is an object of the LoadSets class.
 operator BoundaryConditions & ()
 Cast to BoundaryConditions. Returns the attribute of this class that is an object of the BoundaryConditions class.
 operator GeometryMesh & ()
 Cast to GeometryMesh. Returns the attribute of this class that is an object of the GeometryMesh class.
 operator BoundaryData & ()
 Cast to GeometryMesh. Returns the attribute of this class that is an object of the GeometryMesh class.
unsigned long GetNumberNodes ()
 Returns the number of nodes of the discrete model.
unsigned long GetNumberLoadSets ()
 Returns the number of load cases of the discrete model.
unsigned long GetNumberElements ()
 Returns the number of finite elements present in the discrete model.
unsigned long GetNumberFEGroups ()
 Returns the number of groups of finite elements of the discrete model.
unsigned long GetNumberEquations ()
 Returns the number of equations of the discrete model (number of free degrees of freedom).
unsigned long GetDimension ()
 Returs the dimension od the problem.
void Save (char *Tabname, int Version, char *Filename)
 Writes class data to a binary database.
void Save (FILE *File)
 Writes class information to a binary file.
void Restore (char *Tabname, int Version, char *Filename)
 Restores class data from a binary database written using the Save method.
void Restore (FILE *File)
 Restores class data (written using the Save method) from a binary file.
void Read (FILE *FEMFile, FILE *DEFFile, FILE *LOGFile, SolverType_E SolverType, unsigned long TheoSoluIntOrder=0)
 Reads class data from ASCII files.
void Print (FILE *File, char *Message="")
 Reads class data from the .def ASCII file.
void Free ()
 Releases the physical memory allocated for the discrete model.

Public Attributes

char Tit [TITLE_SIZE]
 Title of the analysis.
DOFs DOFNames
 DOF names and cardinality.
Nodes Coords
 Instance of the Nodes class to store the global nodal coordinates.
MeshTopology MeshTopo
 Instance of the MeshTopology class.
Equations Eqs
 Degrees of freedom of the discrete model.
FEGroups Groups
 Finite element discretization: incidence, finite element types and geometrical properties.
LoadSets LS
 Sets of external loads: nodal loads and body loads.
BoundaryConditions BCs
 Boundary conditions imposed on degrees of freedom: eliminated (zero) and prescribed (nonzero) BCs.
GeometryMesh GeoMsh
 Respresents the relationship between geometry and mesh entities.
BoundaryData BData
 Respresents the nurbs entities.
unsigned long PosTotalNumberDOFs
 This attributes stores the total number of DOFs to post processing mesh.
unsigned long SolTotalNumberDOFs
 This attributes stores the total number of DOFs to solution mesh.

Detailed Description

Control class that aggregates all the features and ttributes of a discrete model and provides the interfaces for other objects to access the discrete model's components.

Author:
Marco Lcio Bittencourt/Fabiano Fernandes Bargos
Date:
April/19/2011

Constructor & Destructor Documentation

Model::Model ( Model Instance)

Copy-initializer constructor. Copies the contents of Instance for the object.

Parameters:
[in]Instance- instance of Model.
Returns:
Reference to the current object.

Member Function Documentation

unsigned long Model::GetDimension ( )

Returs the dimension od the problem.

Returns:
problem dimension.
unsigned long Model::GetNumberElements ( )

Returns the number of finite elements present in the discrete model.

Returns:
number of finite elements in the discrete model.
unsigned long Model::GetNumberEquations ( )

Returns the number of equations of the discrete model (number of free degrees of freedom).

Returns:
number of equations of the discrete model (number of free degrees of freedom).
unsigned long Model::GetNumberFEGroups ( )

Returns the number of groups of finite elements of the discrete model.

Returns:
number of finite element groups of the discrete model.
unsigned long Model::GetNumberLoadSets ( )

Returns the number of load cases of the discrete model.

Returns:
number of load cases of the discrete model.
unsigned long Model::GetNumberNodes ( )

Returns the number of nodes of the discrete model.

Returns:
total number of nodes of the discrete model.
Model::operator BoundaryConditions & ( )

Cast to BoundaryConditions. Returns the attribute of this class that is an object of the BoundaryConditions class.

Returns:
Returns a reference to the BoundaryConditions class variable.
Model::operator BoundaryData & ( )

Cast to GeometryMesh. Returns the attribute of this class that is an object of the GeometryMesh class.

Returns:
Returns a reference to the GeometryMesh class variable.
Model::operator DOFs & ( )

Cast to DOFs. Returns the attribute of this class that is an object of the DOFs class.

Returns:
Returns a reference to the DOFNames class variable.
Model::operator FEGroups & ( )

Cast to FEGroups. Returns the attribute of this class that is an object of the FEGroups class.

Returns:
Returns a reference to the FEGroups class variable.
Model::operator GeometryMesh & ( )

Cast to GeometryMesh. Returns the attribute of this class that is an object of the GeometryMesh class.

Returns:
Returns a reference to the GeometryMesh class variable.
Model::operator LoadSets & ( )

Cast to LoadSets. Returns the attribute of this class that is an object of the LoadSets class.

Returns:
Returns a reference to the LoadSets class variable.
Model::operator MeshTopology & ( )

Cast to MeshTopology. Returns the attribute of this class that is an object of the MeshTopology class.

Returns:
Returns a reference to the MeshTopology class variable.
Model::operator Nodes & ( )

Cast to Nodes. Returns the attribute of this class that is an object of the Nodes class which stores the coordinates of the discrete model.

Returns:
Returns a reference to the Nodes class variable.
Model & Model::operator= ( Model Instance)

Copies the contents of Instance for the object.

Parameters:
[in]Instance- instance of Model.
Returns:
Reference of the current object.
void Model::Print ( FILE *  File,
char *  Message = "" 
)

Reads class data from the .def ASCII file.

Parameters:
[in]DEFFile- pointer to the .def file with model attributes data.
[in]DofNames- instance of DOFs class.
void Model::Read ( FILE *  FEMFile,
FILE *  DEFFile,
FILE *  LOGFile,
SolverType_E  SolverType,
unsigned long  TheoSoluIntOrder = 0 
)

Reads class data from ASCII files.

Parameters:
[in]FEMFile- pointer to the .fem file with mesh data.
[in]DEFFile- pointer to the .def file with model attributes data.
[in]LOGFile- pointer to the .log file.
[in]TheoSolIntegOrder- integration order for the theoretical solution. The default value -1 means that the theoretical solution is not used fro the current analysis.
void Model::Restore ( char *  Tabname,
int  Version,
char *  Filename 
)

Restores class data from a binary database written using the Save method.

Parameters:
[in]Tabname- name of the database table where the data will be stored.
[in]Version- data version number.
[in]Filename- database prefix filename. Two files will be used: filename.dir and filename.bdg. The first one stores keys to the data stored in the filename.bdg file.
void Model::Restore ( FILE *  File)

Restores class data (written using the Save method) from a binary file.

Parameters:
[in]File- pointer to the binary file.
void Model::Save ( char *  Tabname,
int  Version,
char *  Filename 
)

Writes class data to a binary database.

Parameters:
[in]Tabname- name of the database table where the data will be stored.
[in]Version- data version number.
[in]Filename- database prefix filename. Two files will be used: filename.dir and filename.bdg. The first one stores keys to the data stored in the filename.bdg file.
void Model::Save ( FILE *  File)

Writes class information to a binary file.

Note:
The current object state can be completely recovered when applying the Restore() operation.
Parameters:
[in]File- pointer to the binary file.

Member Data Documentation

Sets of external loads: nodal loads and body loads.

Note:
Represents load cases in linear problems and load steps in nonlinear ones.

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Friends Defines