hp2FEM
0.1
|
Class to manage the labels and cardinality of dofs of the finite element model. More...
#include <DOFs.h>
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). |
Class to manage the labels and cardinality of dofs of the finite element model.
DOFs::DOFs | ( | DOFs & | Instance | ) |
Constructor.
unsigned long DOFs::GetCardinalityExtraGeneralDOF | ( | char * | ExtraGeneralDOFName | ) |
Returns the cardinality of an extra general DOF whose name is given as parameter.
[in] | ExtraGeneralDOFName | - name of the desired DOF. |
unsigned long DOFs::GetCardinalityExtraGradientDOF | ( | char * | ExtraGradientDOFName | ) |
Returns the cardinality of an extra gradient DOF whose name is given as parameter.
[in] | ExtraGradientDOFName | - name of the desired DOF. |
unsigned long DOFs::GetCardinalityExtraStressDOF | ( | char * | ExtraStressDOFName | ) |
Returns the cardinality of an extra stress DOF whose name is given as parameter.
[in] | ExtraStressDOFName | - name of the desired DOF. |
unsigned long DOFs::GetCardinalityMixedDOF | ( | char * | MixedDOFName | ) |
Returns the cardinality of a mixed DOF whose name is given as parameter.
[in] | MixedDOFName | - name of the desired DOF. |
unsigned long DOFs::GetCardinalityPrimaryDOF | ( | char * | PrimaryDOFName | ) |
Returns the cardinality of a primary DOF whose name is given as parameter.
[in] | PrimaryDOFName | - name of the desired DOF. |
unsigned long DOFs::GetCardinalitySecondaryGradientDOF | ( | char * | SecondaryGradientDOFName | ) |
Returns the cardinality of a secondary gradient DOF whose name is given as parameter.
[in] | SecondaryGradientDOFName | - name of the desired DOF. |
unsigned long DOFs::GetCardinalitySecondaryStressDOF | ( | char * | SecondaryStressDOFName | ) |
Returns the cardinality of a secondary stress DOF whose name is given as parameter.
[in] | SecondaryStressDOFName | - name of the desired DOF. |
char * DOFs::GetExtraGeneralDOFName | ( | unsigned long | Cardinality | ) |
Returns a pointer to the extra general DOF name (char) whose cardinality is given as parameter.
[in] | cardinality | of the desired DOF. |
char * DOFs::GetExtraStressDOFName | ( | unsigned long | Cardinality | ) |
Returns a pointer to the extra stress DOF name (char) whose cardinality is given as parameter.
[in] | Cardinality | - cardinality of the desired DOF. |
char * DOFs::GetMixedDOFName | ( | unsigned long | Cardinality | ) |
Returns a pointer to the mixed DOF name (char) whose cardinality is given as parameter.
[in] | Cardinality | - cardinality of the desired DOF. |
char * DOFs::GetNameExtraGradientDOF | ( | unsigned long | Cardinality | ) |
Returns a pointer to the extra gradient DOF name (char) whose cardinality is given as parameter.
[in] | cardinality | of the desired DOFs. |
unsigned long DOFs::GetNumberExtraGeneralDOF | ( | ) |
Returns the number of extra general fields.
unsigned long DOFs::GetNumberExtraGradientDOF | ( | ) |
Returns the number of extra gradient fields.
[in] | number | of extra gradient fields. |
unsigned long DOFs::GetNumberExtraStressDOF | ( | ) |
Returns the number of extra stress fields.
unsigned long DOFs::GetNumberMixedDOF | ( | ) |
Return the number of mixed degrees of freedom of the FE model.
[in] | number | of mixed DOFs. |
unsigned long DOFs::GetNumberPrimaryDOF | ( | ) |
Return the number of primary degrees of freedom of the FE model.
[in] | number | of primary DOFs. |
unsigned long DOFs::GetNumberSecondaryGradientDOF | ( | ) |
Returns the number of secondary gradient fields.
[in] | number | of secondary gradient fields. |
unsigned long DOFs::GetNumberSecondaryStressDOF | ( | ) |
Returns the number of secondary stress fields.
[in] | number | of secondary stress fields. |
char * DOFs::GetPrimaryDOFName | ( | unsigned long | Cardinality | ) |
Returns a pointer to the primary DOF name (char) whose cardinality is given as parameter.
[in] | Cardinality | - cardinality of the desired DOF. |
char * DOFs::GetSecondaryGradientDOFName | ( | unsigned long | Cardinality | ) |
Returns a pointer to the secondary gradient DOF name (char) whose cardinality is given as parameter.
[in] | Cardinality | - cardinality of the desired DOF. |
char * DOFs::GetSecondaryStressDOFName | ( | unsigned long | Cardinality | ) |
Returns a pointer to the secondary stress DOF name (char) whose cardinality is given as parameter.
[in] | Cardinality | - cardinality of the desired DOF. |
void DOFs::Print | ( | FILE * | File, |
char * | Message = "" |
||
) |
Prints class information to an ASCII file.
[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.
[in] | DEFFile | - pointer to the .def file. |
void DOFs::Restore | ( | FILE * | File | ) |
Restores class data (written using the Save method) from a binary file.
[in] | File | - pointer to the binary file. |
void DOFs::Save | ( | FILE * | File | ) |
Writes class information to a binary file.
[in] | File | - pointer to the binary file. |
void DOFs::SeNumberPrimaryDOF | ( | unsigned long | NumberPrimaryDOF | ) |
Sets the number of primary degrees of freedom.
[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.
[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.
[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.
[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.
[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.
[in] | NumberExtraGeneralDOF | - number of extra general fields. |
void DOFs::SetNumberExtraGradientDOF | ( | unsigned long | NumberExtraGradientDOF | ) |
Sets the number of extra gradient fields.
[in] | NumberExtraGradientDOF | - number of extra gradient fields. |
void DOFs::SetNumberExtraStressDOF | ( | unsigned long | NumberExtraStressDOF | ) |
Sets the number of extra stresst fields.
[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.
[in] | NumberMixedDOF | - number of mixed DOFs. |
void DOFs::SetNumberSecondaryGradientDOF | ( | unsigned long | NumberSecondaryGradientDOF | ) |
Sets the number of secondary gradient DOF.
[in] | NumberSecondaryGradientDOF | - number of secondary gradient DOF. |
void DOFs::SetNumberSecondaryStressDOF | ( | unsigned long | NumberSecondaryStressDOF | ) |
Sets the number of secondary stress fields.
[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.
[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.
[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.
[in] | Cardinality | - cardinality of the desired DOF. |
[in] | SecondaryStressDOFName | - secondary stress DOF name (char). |
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).
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).
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.
char DOFs::PrimFields[MAX_NUMBER_DIRS_DOFS][MAX_NAME_DIRS_DOFS] [protected] |
Description (names) of all the primary response fields (primary DOFs).
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).
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).