hp2FEM  0.1
Public Member Functions | Protected Attributes
DOFs Class Reference

Class to manage the labels and cardinality of dofs of the finite element model. More...

#include <DOFs.h>

List of all members.

Public Member Functions

 DOFs ()
 Default constructor: the title is set and the other class attributes are initialized with default values.
 DOFs (DOFs &Instance)
 ~DOFs ()
 Destructor.
unsigned long GetNumberPrimaryDOF ()
 Return the number of primary degrees of freedom of the FE model.
unsigned long GetNumberMixedDOF ()
 Return the number of mixed degrees of freedom of the FE model.
unsigned long GetNumberSecondaryGradientDOF ()
 Returns the number of secondary gradient fields.
unsigned long GetNumberSecondaryStressDOF ()
 Returns the number of secondary stress fields.
unsigned long GetNumberExtraGradientDOF ()
 Returns the number of extra gradient fields.
unsigned long GetNumberExtraStressDOF ()
 Returns the number of extra stress fields.
unsigned long GetNumberExtraGeneralDOF ()
 Returns the number of extra general fields.
char * GetPrimaryDOFName (unsigned long Cardinality)
 Returns a pointer to the primary DOF name (char) whose cardinality is given as parameter.
char * GetMixedDOFName (unsigned long Cardinality)
 Returns a pointer to the mixed DOF name (char) whose cardinality is given as parameter.
char * GetSecondaryGradientDOFName (unsigned long Cardinality)
 Returns a pointer to the secondary gradient DOF name (char) whose cardinality is given as parameter.
char * GetSecondaryStressDOFName (unsigned long Cardinality)
 Returns a pointer to the secondary stress DOF name (char) whose cardinality is given as parameter.
char * GetNameExtraGradientDOF (unsigned long Cardinality)
 Returns a pointer to the extra gradient DOF name (char) whose cardinality is given as parameter.
char * GetExtraStressDOFName (unsigned long Cardinality)
 Returns a pointer to the extra stress DOF name (char) whose cardinality is given as parameter.
char * GetExtraGeneralDOFName (unsigned long Cardinality)
 Returns a pointer to the extra general DOF name (char) whose cardinality is given as parameter.
unsigned long GetCardinalityPrimaryDOF (char *PrimaryDOFName)
 Returns the cardinality of a primary DOF whose name is given as parameter.
unsigned long GetCardinalityMixedDOF (char *MixedDOFName)
 Returns the cardinality of a mixed DOF whose name is given as parameter.
unsigned long GetCardinalitySecondaryGradientDOF (char *SecondaryGradientDOFName)
 Returns the cardinality of a secondary gradient DOF whose name is given as parameter.
unsigned long GetCardinalitySecondaryStressDOF (char *SecondaryStressDOFName)
 Returns the cardinality of a secondary stress DOF whose name is given as parameter.
unsigned long GetCardinalityExtraGradientDOF (char *ExtraGradientDOFName)
 Returns the cardinality of an extra gradient DOF whose name is given as parameter.
unsigned long GetCardinalityExtraStressDOF (char *ExtraStressDOFName)
 Returns the cardinality of an extra stress DOF whose name is given as parameter.
unsigned long GetCardinalityExtraGeneralDOF (char *ExtraGeneralDOFName)
 Returns the cardinality of an extra general DOF whose name is given as parameter.
void SeNumberPrimaryDOF (unsigned long NumberPrimaryDOF)
 Sets the number of primary degrees of freedom.
void SetNumberMixedDOF (unsigned long NumberMixedDOF)
 Sets the number of mixed degrees of freedom of the FE model.
void SetNumberSecondaryGradientDOF (unsigned long NumberSecondaryGradientDOF)
 Sets the number of secondary gradient DOF.
void SetNumberSecondaryStressDOF (unsigned long NumberSecondaryStressDOF)
 Sets the number of secondary stress fields.
void SetNumberExtraGradientDOF (unsigned long NumberExtraGradientDOF)
 Sets the number of extra gradient fields.
void SetNumberExtraStressDOF (unsigned long NumberExtraStressDOF)
 Sets the number of extra stresst fields.
void SetNumberExtraGeneralDOF (unsigned long NumberExtraGeneralDOF)
 Sets the number of extra general fields.
void SetPrimaryDOFName (unsigned long Cardinality, char *PrimaryDOFName)
 Sets the primary DOF name (char) whose cardinality is given as parameter.
void SetMixedDOFName (unsigned long Cardinality, char *MixedDOFName)
 Sets the mixed DOF name (char) whose cardinality is given as parameter.
void SetSecondaryGradientDOFName (unsigned long Cardinality, char *SecondaryGradientDOFName)
 Sets the secondary gradient DOF name (char) whose cardinality is given as parameter.
void SetSecondaryStressDOFName (unsigned long Cardinality, char *SecondaryStressDOFName)
 Sets the secondary stress DOF name (char) whose cardinality is given as parameter.
void SetExtraGradientDOFName (unsigned long Cardinality, char *ExtraGradientDOFName)
 Sets the extra gradient DOF name (char) whose cardinality is given as parameter.
void SetExtraStressDOFName (unsigned long Cardinality, char *ExtraStressDOFName)
 Sets the extra stress DOF name (char) whose cardinality is given as parameter.
void SetExtraGeneralDOFName (unsigned long Cardinality, char *ExtraGeneralDOFName)
 Sets the extra general DOF name (char) whose cardinality is given as parameter.
void Save (FILE *File)
 Writes class information to a binary file.
void Restore (FILE *File)
 Restores class data (written using the Save method) from a binary file.
void Read (FILE *DEFFile)
 Reads class data from t ASCII file.he .def.
void Print (FILE *File, char *Message="")
 Prints class information to an ASCII file.
void Free ()
 Releases the physical memory allocated for the discrete model.

Protected Attributes

unsigned long NumPrimFields
 Number of primary response fields (primary DOFs).
unsigned long NumMixFields
 Number of mixed response fields (mixed DOFs).
unsigned long NumSecGradFields
 Number of secondary response fields (derivatives of the primary and mixed response fields).
unsigned long NumSecStressFields
 Number of secondary response stress fields.
unsigned long NumExGradFields
 Number of extra stress response fields (for example, principal strains)
unsigned long NumExStressFields
 Number of extra stress response fields (for example, principal stresses).
unsigned long NumExGenFields
 Number of secondary response fields (for example, normal contact force).
char PrimFields [MAX_NUMBER_DIRS_DOFS][MAX_NAME_DIRS_DOFS]
 Description (names) of all the primary response fields (primary DOFs).
char MixFields [MAX_NUMBER_DIRS_DOFS][MAX_NAME_DIRS_DOFS]
 Description (names) of the mixed response fields (mixed DOFs)These names will be used when saving the results for post-processing.
char SecGradFields [MAX_NUMBER_DIRS_DOFS][MAX_NAME_DIRS_DOFS]
 Description (names) of the secondary response fields (derived from the primary and mixed response fields).
char SecStressFields [MAX_NUMBER_DIRS_DOFS][MAX_NAME_DIRS_DOFS]
 Description (names) of the secondary response fields (derived from the primary and mixed response fields).
char ExGradFields [MAX_NUMBER_DIRS_DOFS][MAX_NAME_DIRS_DOFS]
 Description (names) of the extra stress response fields (derived from the primary and secondary response fields).
char ExStressFields [MAX_NUMBER_DIRS_DOFS][MAX_NAME_DIRS_DOFS]
 Description (names) of the extra stress response fields (derived from the primary and secondary response fields).
char ExGenFields [MAX_NUMBER_DIRS_DOFS][MAX_NAME_DIRS_DOFS]
 Description (names) of the secondary response fields (derived from the primary and mixed response fields).

Detailed Description

Class to manage the labels and cardinality of dofs of the finite element model.

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

Constructor & Destructor Documentation

DOFs::DOFs ( DOFs Instance)

Constructor.


Member Function Documentation

unsigned long DOFs::GetCardinalityExtraGeneralDOF ( char *  ExtraGeneralDOFName)

Returns the cardinality of an extra general DOF whose name is given as parameter.

Parameters:
[in]ExtraGeneralDOFName- name of the desired DOF.
Note:
If that name is not found, this class returns -1.
unsigned long DOFs::GetCardinalityExtraGradientDOF ( char *  ExtraGradientDOFName)

Returns the cardinality of an extra gradient DOF whose name is given as parameter.

Parameters:
[in]ExtraGradientDOFName- name of the desired DOF.
Note:
If that name is not found, this class returns -1.
unsigned long DOFs::GetCardinalityExtraStressDOF ( char *  ExtraStressDOFName)

Returns the cardinality of an extra stress DOF whose name is given as parameter.

Parameters:
[in]ExtraStressDOFName- name of the desired DOF.
Note:
If that name is not found, this class returns -1.
unsigned long DOFs::GetCardinalityMixedDOF ( char *  MixedDOFName)

Returns the cardinality of a mixed DOF whose name is given as parameter.

Parameters:
[in]MixedDOFName- name of the desired DOF.
Note:
If that name is not found, this class returns -1.
unsigned long DOFs::GetCardinalityPrimaryDOF ( char *  PrimaryDOFName)

Returns the cardinality of a primary DOF whose name is given as parameter.

Parameters:
[in]PrimaryDOFName- name of the desired DOF.
Note:
If that name is not found, this class returns -1.
unsigned long DOFs::GetCardinalitySecondaryGradientDOF ( char *  SecondaryGradientDOFName)

Returns the cardinality of a secondary gradient DOF whose name is given as parameter.

Parameters:
[in]SecondaryGradientDOFName- name of the desired DOF.
Note:
If that name is not found, this class returns -1.
unsigned long DOFs::GetCardinalitySecondaryStressDOF ( char *  SecondaryStressDOFName)

Returns the cardinality of a secondary stress DOF whose name is given as parameter.

Parameters:
[in]SecondaryStressDOFName- name of the desired DOF.
Note:
If that name is not found, this class returns -1.
char * DOFs::GetExtraGeneralDOFName ( unsigned long  Cardinality)

Returns a pointer to the extra general DOF name (char) whose cardinality is given as parameter.

Parameters:
[in]cardinalityof the desired DOF.
Returns:
Pointer to extra general DOF name (char*).
char * DOFs::GetExtraStressDOFName ( unsigned long  Cardinality)

Returns a pointer to the extra stress DOF name (char) whose cardinality is given as parameter.

Parameters:
[in]Cardinality- cardinality of the desired DOF.
Returns:
Pointer to extra stress DOF name (char*).
char * DOFs::GetMixedDOFName ( unsigned long  Cardinality)

Returns a pointer to the mixed DOF name (char) whose cardinality is given as parameter.

Parameters:
[in]Cardinality- cardinality of the desired DOF.
Returns:
Pointer to mixed DOF name (char*).
char * DOFs::GetNameExtraGradientDOF ( unsigned long  Cardinality)

Returns a pointer to the extra gradient DOF name (char) whose cardinality is given as parameter.

Parameters:
[in]cardinalityof the desired DOFs.
Returns:
Pointer to extra gradient DOF name (char).
unsigned long DOFs::GetNumberExtraGeneralDOF ( )

Returns the number of extra general fields.

Returns:
number of extra general fields.

Returns the number of extra gradient fields.

Parameters:
[in]numberof extra gradient fields.
unsigned long DOFs::GetNumberExtraStressDOF ( )

Returns the number of extra stress fields.

Returns:
number of extra stress fields.
unsigned long DOFs::GetNumberMixedDOF ( )

Return the number of mixed degrees of freedom of the FE model.

Parameters:
[in]numberof mixed DOFs.
unsigned long DOFs::GetNumberPrimaryDOF ( )

Return the number of primary degrees of freedom of the FE model.

Parameters:
[in]numberof primary DOFs.

Returns the number of secondary gradient fields.

Parameters:
[in]numberof secondary gradient fields.

Returns the number of secondary stress fields.

Parameters:
[in]numberof secondary stress fields.
char * DOFs::GetPrimaryDOFName ( unsigned long  Cardinality)

Returns a pointer to the primary DOF name (char) whose cardinality is given as parameter.

Parameters:
[in]Cardinality- cardinality of the desired DOF.
Returns:
Pointer to primary DOF name (char*).
char * DOFs::GetSecondaryGradientDOFName ( unsigned long  Cardinality)

Returns a pointer to the secondary gradient DOF name (char) whose cardinality is given as parameter.

Parameters:
[in]Cardinality- cardinality of the desired DOF.
Returns:
Pointer to secondary gradient DOF name (char*).
char * DOFs::GetSecondaryStressDOFName ( unsigned long  Cardinality)

Returns a pointer to the secondary stress DOF name (char) whose cardinality is given as parameter.

Parameters:
[in]Cardinality- cardinality of the desired DOF.
Returns:
Pointer to secondary stress DOF name (char*).
void DOFs::Print ( FILE *  File,
char *  Message = "" 
)

Prints class information to an ASCII file.

Parameters:
[in]File,:pointer to the ASCII file.
[in]Message,:optional message
void DOFs::Read ( FILE *  DEFFile)

Reads class data from t ASCII file.he .def.

Parameters:
[in]DEFFile- pointer to the .def file.
void DOFs::Restore ( FILE *  File)

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

Parameters:
[in]File- pointer to the binary file.
void DOFs::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.
void DOFs::SeNumberPrimaryDOF ( unsigned long  NumberPrimaryDOF)

Sets the number of primary degrees of freedom.

Parameters:
[in]NumberPrimaryDOF- number of primary DOFs.
void DOFs::SetExtraGeneralDOFName ( unsigned long  Cardinality,
char *  ExtraGeneralDOFName 
)

Sets the extra general DOF name (char) whose cardinality is given as parameter.

Parameters:
[in]Cardinality- cardinality of the desired DOF.
[in]ExtraGeneralDOFName- extra general DOF name (char*).
void DOFs::SetExtraGradientDOFName ( unsigned long  Cardinality,
char *  ExtraGradientDOFName 
)

Sets the extra gradient DOF name (char) whose cardinality is given as parameter.

Parameters:
[in]Cardinality- cardinality of the desired DOF.
[in]ExtraGradientDOFName- extra gradient DOF name (char*).
void DOFs::SetExtraStressDOFName ( unsigned long  Cardinality,
char *  ExtraStressDOFName 
)

Sets the extra stress DOF name (char) whose cardinality is given as parameter.

Parameters:
[in]Cardinality- cardinality of the desired DOF.
[in]ExtraStressDOFName- extra stress DOF name (char*).
void DOFs::SetMixedDOFName ( unsigned long  Cardinality,
char *  MixedDOFName 
)

Sets the mixed DOF name (char) whose cardinality is given as parameter.

Parameters:
[in]Cardinality- cardinality of the desired DOFs.
[in]MixedDOFName- mixed DOF name (char*).
void DOFs::SetNumberExtraGeneralDOF ( unsigned long  NumberExtraGeneralDOF)

Sets the number of extra general fields.

Parameters:
[in]NumberExtraGeneralDOF- number of extra general fields.
void DOFs::SetNumberExtraGradientDOF ( unsigned long  NumberExtraGradientDOF)

Sets the number of extra gradient fields.

Parameters:
[in]NumberExtraGradientDOF- number of extra gradient fields.
void DOFs::SetNumberExtraStressDOF ( unsigned long  NumberExtraStressDOF)

Sets the number of extra stresst fields.

Parameters:
[in]NumberExtraStresstDOF- number of extra stress fields.
void DOFs::SetNumberMixedDOF ( unsigned long  NumberMixedDOF)

Sets the number of mixed degrees of freedom of the FE model.

Parameters:
[in]NumberMixedDOF- number of mixed DOFs.
void DOFs::SetNumberSecondaryGradientDOF ( unsigned long  NumberSecondaryGradientDOF)

Sets the number of secondary gradient DOF.

Parameters:
[in]NumberSecondaryGradientDOF- number of secondary gradient DOF.
void DOFs::SetNumberSecondaryStressDOF ( unsigned long  NumberSecondaryStressDOF)

Sets the number of secondary stress fields.

Parameters:
[in]NumberSecondaryStressDOF- number of secondary stress fields.
void DOFs::SetPrimaryDOFName ( unsigned long  Cardinality,
char *  PrimaryDOFName 
)

Sets the primary DOF name (char) whose cardinality is given as parameter.

Parameters:
[in]Cardinality- cardinality of the desired DOFs.
[in]PrimaryDOFName- primary DOF name (char*).
void DOFs::SetSecondaryGradientDOFName ( unsigned long  Cardinality,
char *  SecondaryGradientDOFName 
)

Sets the secondary gradient DOF name (char) whose cardinality is given as parameter.

Parameters:
[in]Cardinality- cardinality of the desired DOF.
[in]SecondaryGradientDOFName- secondary gradient DOF name (char*).
void DOFs::SetSecondaryStressDOFName ( unsigned long  Cardinality,
char *  SecondaryStressDOFName 
)

Sets the secondary stress DOF name (char) whose cardinality is given as parameter.

Parameters:
[in]Cardinality- cardinality of the desired DOF.
[in]SecondaryStressDOFName- secondary stress DOF name (char).

Member Data Documentation

char DOFs::ExGenFields[MAX_NUMBER_DIRS_DOFS][MAX_NAME_DIRS_DOFS] [protected]

Description (names) of the secondary response fields (derived from the primary and mixed response fields).

Note:
These names will be used when saving the results for post-processing (check if it is not better to leave this responsibility for the PROBLEM DEFINITION subsystem).
char DOFs::ExGradFields[MAX_NUMBER_DIRS_DOFS][MAX_NAME_DIRS_DOFS] [protected]

Description (names) of the extra stress response fields (derived from the primary and secondary response fields).

These names will be used when saving the results for post-processing (check if it is not better to leave this responsibility for the ROBLEM DEFINITION subsystem) and for checking the cardinality of the degree of freedom.

char DOFs::ExStressFields[MAX_NUMBER_DIRS_DOFS][MAX_NAME_DIRS_DOFS] [protected]

Description (names) of the extra stress response fields (derived from the primary and secondary response fields).

Note:
These names will be used when saving the results for post-processing (check if it is not better to leave this responsibility for the PROBLEM DEFINITION subsystem).
char DOFs::MixFields[MAX_NUMBER_DIRS_DOFS][MAX_NAME_DIRS_DOFS] [protected]

Description (names) of the mixed response fields (mixed DOFs)These names will be used when saving the results for post-processing.

Note:
These names will be used when saving the results for post-processing (check if it is not better to leave this responsibility for the PROBLEM DEFINITION subsystem) and for checking the cardinality of the degree of freedom.
char DOFs::PrimFields[MAX_NUMBER_DIRS_DOFS][MAX_NAME_DIRS_DOFS] [protected]

Description (names) of all the primary response fields (primary DOFs).

Note:
It is not required that all the nodes of a finite element model have all primary fields: a discrete model with different finite elements may present different primary fields in different nodes.

These names will be used when saving the results for post-processing (check if it is not better to leave this responsibility for the PROBLEM DEFINITION subsystem) and for checking the cardinality of the degree of freedom.

char DOFs::SecGradFields[MAX_NUMBER_DIRS_DOFS][MAX_NAME_DIRS_DOFS] [protected]

Description (names) of the secondary response fields (derived from the primary and mixed response fields).

Note:
These names will be used when saving the results for post-processing (check if it is not better to leave this responsibility for the PROBLEM DEFINITION subsystem).
char DOFs::SecStressFields[MAX_NUMBER_DIRS_DOFS][MAX_NAME_DIRS_DOFS] [protected]

Description (names) of the secondary response fields (derived from the primary and mixed response fields).

Note:
These names will be used when saving the results for post-processing (check if it is not better to leave this responsibility for the PROBLEM DEFINITION subsystem).

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