muMECH
1.0
|
Namespaces | |
MatrixOperations | |
Namespace of the functions of various matrices/tensor/vector operations. | |
Stiffness | |
Namespace of functions returning the stiffness and complience objects. | |
TransformTensors | |
Namespace of the functions transforming vectors and strain/stress tensors saved in vectors with TNTV_THEORETICAL_FEEP notation, see types.h. | |
Classes | |
struct | _COMPLEX |
struct | aLambda |
class | bod_pomocny |
struct | cLambda |
class | Comparison |
Class of the functions comparing results. More... | |
class | DifferentialScheme |
Class of function for Mori-Tanaka homogenization. More... | |
class | Dilute |
Class of function for Mori-Tanaka homogenization. More... | |
class | eshelbySoluEllipticIntegrals |
Class of the functions calculating the values of elliptic integrals and its derivatives. More... | |
class | eshelbySoluEllipticIntegralsCylinder |
Class of the functions calculating the values of elliptic integrals and its derivatives of circular cylinder (a1 -> infinity, a2 = a3) More... | |
class | eshelbySoluEllipticIntegralsEllipsoid |
Class of the functions calculating the values of elliptic integrals and its derivatives of general ellipsoid. More... | |
class | eshelbySoluEllipticIntegralsEllipticCylinder |
Class of the functions calculating the values of elliptic integrals and its derivatives of elliptic cylinder (a1 -> infinity, a2 > a3) More... | |
class | eshelbySoluEllipticIntegralsFlatEllipsoid |
Class of the functions calculating the values of elliptic integrals and its derivatives of flat ellipsoid (a1 > a2 >> a3) More... | |
class | eshelbySoluEllipticIntegralsOblateSpheroid |
Class of the functions calculating the values of elliptic integrals and its derivatives of oblate spheroid (a1 = a2 > a3). More... | |
class | eshelbySoluEllipticIntegralsPenny |
Class of the functions calculating the values of elliptic integrals and its derivatives of penny shape (a1 = a2 >> a3). More... | |
class | eshelbySoluEllipticIntegralsProlateSpheroid |
Class of the functions calculating the values of elliptic integrals and its derivatives of prolate spheroid (a1 > a2 = a3). More... | |
class | eshelbySoluEllipticIntegralsSphere |
Class of the functions returning the Ferers-Dysons elliptic integral values as well as its derivatives. More... | |
class | eshelbySoluLambda |
Class of functions calculating the values of 'lambda' parameter and its derivatives. More... | |
class | eshelbySoluUniformField |
Class of the functions returning the Eshelby solution of an inclusion of an ellipsoidal shape loaded by the uniform strain/stress field. More... | |
class | eshelbySoluUniformFieldCylinder |
eshelbySoluUniformFieldCylinder class declaration More... | |
class | eshelbySoluUniformFieldEllipticCylinder |
eshelbySoluUniformFieldEllipticCylinder class declaration More... | |
class | eshelbySoluUniformFieldFlatEllipsoid |
eshelbySoluUniformFieldFlatEllipsoid class declaration More... | |
class | eshelbySoluUniformFieldOblateSpheroid |
eshelbySoluUniformFieldOblateSpheroid class declaration More... | |
class | eshelbySoluUniformFieldPenny |
eshelbySoluUniformFieldPenny class declaration More... | |
class | eshelbySoluUniformFieldProlateSpheroid |
eshelbySoluUniformFieldProlateSpheroid class declaration More... | |
class | eshelbySoluUniformFieldSphere |
Return the Eshelby solution of a spherical inclusion loaded by the uniform strain/stress field. More... | |
class | Homogenization |
Class of function for homogenization of stress fields. More... | |
class | Inclusion |
Class InclusionRecord contains and handles all inclusion data. More... | |
class | InclusionRecord2D |
class | InclusionRecord3D |
3D inclusion record. More... | |
class | legendreIntegrals |
Class legendreIntegrals provides functions calculating values of elliptical integrals. More... | |
class | matice |
class | MatrixRecord |
matrix data structure - matrix (infinite medium) record More... | |
class | mElement |
Class mElement contains and handles all mesh element data. More... | |
class | Mesh |
Class Mesh contains and handles all mesh data. More... | |
class | MesoFace |
Class of the interface functions for libraries meso2d and meso3d. More... | |
class | mNode |
Class mNode contains and handles all mesh node data. More... | |
class | MoriTanaka |
Class of function for Mori-Tanaka homogenization. More... | |
struct | nLambda |
class | Point |
Single Point data structure - contribution from Single inclusion. More... | |
class | polynomialRootSolution |
Class polynomialRootSolution collects functions calculating the roots of polynomial functions. More... | |
class | Problem |
Problem description. More... | |
class | ProblemFEM |
Problem description for FEM problem with results. More... | |
class | Problems |
class | RegGrid |
Class of function for ... homogenization. More... | |
class | ReussBound |
Class of function for Reuss bound. More... | |
class | selfBalanceAlgorithm |
class | vektor |
class | VoightBound |
Class of function for Voight bound. More... | |
Functions | |
void | enter () |
void | e (int i) |
int | MaticexVektor (vektor &res, matice &mat, vektor &vek) |
int | RozdilVektoru (vektor &a, vektor &b, vektor &c) |
void | PrintVektor (vektor &vekt) |
void | PrintMatrix (matice &mat, FILE *&soubor) |
void | rotate_vector (vektor &V, double angle) |
void | change_radky (vektor &a, vektor &b) |
void | gaussovaEliminace (matice &m, vektor &right) |
double | giveVectorLength (const double *point_1, const double *point_2) |
void | ludcmp (double **a, int n, int *indx, double *d) |
void | lubksb (double **a, int n, int *indx, double b[]) |
void | scan_FIELD_head (FILE *stream, long noincl, int nexc, char format, const char *name) |
scan_DATA_field_head More... | |
void | print_VTK_elems_head (Stream *stream, long noIncl) |
XMLElement * | print_VTK_field_head (Stream *stream, const char *name, char format, int slen, int noincl) |
void | print_valuesi (char *auxs, int n, const int *values, int rv) |
void | convertTensorStrain (bool twodim, double *tens, STRNotation oldNot, STRNotation newNot) |
void | convertTensorStress (bool twodim, double *tens, STRNotation oldNot, STRNotation newNot) |
const char * | IST_e2s (InclusionGeometry ig) |
Inclusion shapes' type - enum to string. More... | |
void | print_VTK_START (Stream *stream, const char *filename) |
Print head of vtk file. More... | |
void | print_VTK_head (FILE *stream, const char *type) |
XMLElement * | print_VTK_nodes_head (Stream *stream, long n) |
void | print_VTK_init_point_data (Stream *stream, long n) |
void | print_VTK_init_cell_data (Stream *stream, long n) |
XMLElement * | print_VTK_data_head (Stream *stream, const char *name, char type, char format, int slen) |
void | print_values (char *auxs, int n, const double *values, int precision) |
void | print_values_Scalar (char *auxs, const double *values, long len, int precision) |
len = pocet scalar cisel More... | |
void | print_values_Vector (char *auxs, const double *values, bool twodim, int precision) |
dim == dimenze vstupnich dat - 2d ano nebo ne More... | |
void | print_values_Tensor (char *auxs, const double *values, bool twodim, int precision) |
dim == dimenze vstupnich dat - 2d ano nebo ne; values musi byt v notaci STRN_THEORETICAL_FEEP More... | |
void | print_auxs (bool lgc, Stream *stream, XMLElement *da, const char *auxs) |
void | print_VTK_FINISH (Stream *stream) |
void | scan_DATA_field_head (Stream *stream, Stream *strm, const char *str, char type, int nexc, char format, const char *name) |
scan_DATA_field_head More... | |
bool | cmp_vtk_file (const char *file1, const char *file2, int verbose) |
Compare two VTK files. Return false if same. [ return hodnota byly kdysi opacna ]. More... | |
*** VARIOUS FUNCTIONS *** | |
Operations with arrays of chars | |
void | PrintProgress (double procento, int incr) |
Operations with arrays of chars. More... | |
void | PrintProgress (clock_t *p_time) |
double | giveVolumeEllipsoid (double a, double b, double c) |
Function gives the volume of an allipsoid defined by its semiaxes a, b, c. More... | |
double | give_curvature (double x, double a, double b) |
double | acosh (double x) |
Inverse hyperbolic cosine. More... | |
*** FILE PROCESSING *** | |
Operations with file descriptors | |
void | OpenFile (FILE **file, char *name, const char mode[]) |
Operations with file descriptors. More... | |
void | OpenFile (FILE *&file, char name[], int mode) |
description: functions opens a file and tests the succes of the opening note: function requires the global (outer) definition of @*file More... | |
void | CloseFile (FILE *file) |
description: function closes a previously opened file and tests the succes of the closing note: function requires the global (outer) definition of @*file More... | |
void | GoToEndOfLine (FILE *fr) |
description: functions moves the cursor the the end of line (EOLN) in a text file last edit: 1.10.2006 More... | |
void | LatexPreambule (FILE *fw) |
description: function prints a simple preamble of a LaTEX document last edit: 16.05.2007 More... | |
void | LatexEnd (FILE *fw) |
description: function prints the end (closing part) of LaTEX document last edit: 16.05.2007 More... | |
*** STRING PROCESSING *** | |
Funkce zapise LENGTH bytu z BUFFER do docasneho souboru. Pote je jmeno souboru zruseno v filesystemu(unlink). Vraci deskriptor souboru. Operations with arrays of chars | |
int | GetRangeOfFileRows (char *p_name) |
Funkce zapise LENGTH bytu z BUFFER do docasneho souboru. More... | |
int | GetRangeOfFileColumns (char *p_name) |
Function gives the number columns of the file such as is not necessarilly. More... | |
int | GetRangeOfFileColumns_ii (char *p_name) |
Function gives the number columns of a file structured as a table. More... | |
*** GENERAL VECTOR OPERATIONS *** | |
Operations with 1d arrays of various length | |
double | give_VectorVectorProduct (const double *v1, const double *v2, long n) |
Operations with 1d arrays of various length. More... | |
double | give_quadNormTwoVectors (const double *v1, const double *v2, int n) |
Function returns the quadratic norm of two vectors of length 'n'. More... | |
void | ReadDataToArray (double **p_array, char *p_file_name) |
description: function initializes a 2D 'double' array from a given file More... | |
void | ReadDataTo3DArray (double ***p_array, char *p_file_name, int no_fields, int no_rows, int no_columns) |
description: function initializes a 3D 'double' array by values from a given file More... | |
void | ReadDataToArray (int **p_array, char *p_file_name) |
description: function initializes a 3D 'int' array by values from a given file More... | |
void | ReadDataToVector (int *p_array, char *p_file_name) |
description: function initializes an 'int' vector by values from a given file More... | |
double | giveVectorLength (double rx, double ry, double rz) |
Function returns the length of a vector given by its components. More... | |
bool | isNumberPresentInVector (int number, int *vect, int range) |
description: function returns TRUE/FALSE if a occurs/doesn't occurs in a , respectively More... | |
bool * | Allocate1Dbz (long d1) |
Function allocates ('new' command) a 1d array of bool set to zero. More... | |
bool ** | Allocate1Dbp (long d1) |
Function allocates ('new' command) a 1d array of bool* pointers set to NULL. More... | |
int * | Allocate1Di (long d1) |
Function allocates ('new' command) a 1d array of int. More... | |
double * | Allocate1Dd (long d1) |
Function allocates ('new' command) a 1d array of double. More... | |
double * | Allocate1Ddz (long d1) |
Function allocates ('new' command) a 1d array of double set to zero. More... | |
double ** | Allocate1Ddp (long d1) |
Function allocates ('new' command) a 1d array of double* pointers set to NULL. More... | |
double *** | Allocate1Ddpp (long d1) |
Function allocates ('new' command) a 1d array of double** pointers set to NULL. More... | |
void | CleanVector (double *a, long n) |
Functin cleans a 'double' vector, initialize each value being 0-zero. More... | |
void | CleanVector (int *a, long n) |
Functin cleans a 'int' vector, initialize each value being 0-zero. More... | |
void | CleanVector (long *a, long n) |
Functin cleans a 'long' vector, initialize each value being 0-zero. More... | |
double | GiveSumMembersVector (const double *a, long n) |
Function returns sum of all member of 'array'. More... | |
void | CopyVector (const double *src, double *dest, long n) |
Function copy given number of components from vector, 'a' to vector 'b'. More... | |
void | CopyVector (const long *src, long *dest, long n) |
Function copy given number of components from vector, 'a' to vector 'b'. More... | |
void | CopyVector (const int *src, int *dest, long n) |
Function copy given number of components from vector, 'a' to vector 'b'. More... | |
void | AddVector (const double *a, double *b, long n) |
Function add given number of components from vector 'a' to vector 'b', b += a. More... | |
void | AddVector (const int *a, int *b, long n) |
Function add given number of components from vector 'a' to vector 'b', b += a. More... | |
void | SubtractVector (const double *a, double *b, long n) |
Function subtracts given number of components vector 'a' from vector 'b'; b -= a. More... | |
void | SubtractTwoVectors (const double *v1, const double *v2, double *answer, long n) |
Function subtracts two vectors of entries. answer = v1 - v2. More... | |
void | AddScalarToVector (long s, long *v, long n) |
Function add given number of components from vector 'a' to vector 'b'. More... | |
void | SumTwoVectors (const double *v1, const double *v2, double *answer, long n) |
Function sums two vectors of entries. resVec = vec1 - vec2. More... | |
void | AddVectorMultipledBy (double mlt, const double *a, double *b, long n) |
Function add given number of components multiplied by 'mlt' from vector 'a' to vector 'b'. More... | |
void | DivideVector (double *a, long n, double val) |
Function divides 'n' components of field 'a' by value 'val'. More... | |
void | MultiplyVector (double *a, long n, double val) |
Function multiplies 'n' components of field 'a' by value 'val'. More... | |
double | giveVectorLength (double *point_1, double *point_2) |
Function returns the length of a vector given by 3D coordinates of two points. More... | |
*** GENERAL ARRAY OPERATIONS *** | |
Operations with 2d, 3d, 4d arrays of various sizes | |
double ** | AllocateArray2D (long d1, long d2) |
Operations with 2d, 3d, 4d arrays of various sizes. More... | |
void | AllocateArray2D (double **&array, long d1, long d2) |
Function allocates a 2D 'double' array by 'new' command. More... | |
void | CopyArray2D (const double *const *src, double **dest, long d1, long d2) |
Function copy two 2D double arrays with dimensions d1xd2 from 'src' to 'dest'. More... | |
void | CopyArray3D (const double ***src, double ***dest, long d1, long d2, long d3) |
Function copy two 3D double arrays with dimensions d1xd2xd3 from 'src' to 'dest'. More... | |
void | AddArray2D (const double *const *src, double **dest, long d1, long d2) |
Function add 2D double array with dimensions d1xd2 from 'src' to 'dest'. More... | |
void | AddArray3D (double ***src, double ***dest, long d1, long d2, long d3) |
Function add 3D double array with dimensions d1xd2xd3 from 'src' to 'dest'. More... | |
void | DivideArray2D (double **a, double val, long d1, long d2) |
Function divides 2D double array 'a' with dimensions d1xd2 by value 'val'. More... | |
void | SubtractTwoArrays2D (const double *const *a1, const double *const *a2, double **answer, long d1, long d2) |
Function subtracts two 2D double arrays with dimensions d1xd2. answer = v1 - v2. More... | |
void | giveInverseMatrix2x2 (double *answer, const double *m) |
Function computes inverse of the row-wise saved 2x2 matrix 'm'. More... | |
void | giveInverseMatrix3x3 (double *answer, const double *m) |
Function computes inverse of the row-wise saved 3x3 matrix 'm'. More... | |
void | giveInverseMatrix3x3to5 (double *answer, const double *m) |
Function computes inverse of the eshelby-like 3x3 matrix 'm' saved in reduced 3x3to5 form. More... | |
void | giveInverseMatrix6x6to12 (double *answer, const double *m) |
Function computes inverse of the eshelby-like 3x3 matrix 'm' saved in reduced 6x6to12 form. More... | |
void | giveMatrixVectorProduct (const double *mtrx, const double *vect, double *resVect, long n) |
Function gives the product of a regular matrix with a vector. More... | |
void | giveMatrixMatrixProduct (const double *mtrx1, const double *mtrx2, double *resMtrx, long n) |
Function gives the product of two regular matrices. More... | |
void | giveTransposedMatrix (const double *mtrx, double *T_mtrx, int n) |
Function gives the trasposition of a matrix saved in row-by-row C arrangement. More... | |
void | printMatrix (double *mtrx, int n, const char *notice) |
Function prints a matrix which are saved in 'row-by-row' C arrangement as 1D arrays. More... | |
void | printMatrix (double **mtrx, int n, const char *notice) |
Function prints a matrix which is saved as 2D array. More... | |
void | printVector (double *vect, int n, const char *notice) |
Function prints the vector of double values as column. More... | |
void | printVector (int *vect, int n, const char *notice) |
Function prints the vector of integers as column. More... | |
void | printVectorRowForm (double *vect, int n, const char *notice) |
Function prints the vector of double values as row. More... | |
void | printVectorRowForm (int *vect, int n, const char *notice) |
Function prints the vector of integers as row. More... | |
void | DeleteArray2D (bool **array, long d1) |
Function deletes a 2D 'bool' array of dimension d1 x ??, allocated by new. More... | |
void | DeleteArray2D (double **array, long d1) |
Function deletes a 2D 'double' array of dimension d1 x ??, allocated by new. More... | |
void | DeleteArray3D (double ***array, long d1, long d2) |
Function deletes a 3D 'double' array of dimension d1 x d2 x ??, allocated by new. More... | |
void | CleanArray2D (int **a, long rows, long columns) |
Function cleans an 2d 'int' array, initialize each value being 0-zero. More... | |
void | CleanArray2d (double **a, long rows, long columns) |
Function cleans an 2d 'double' array, initialize each value being 0-zero. More... | |
double | GiveSumMembersArray2D (const double **a, long d1, long d2) |
Function returns sum of all member of array 'a'. More... | |
void | copyMatrix_1Dto2D (const double *v, double **m, long n) |
Function copies 2D matrix saved in row-wise vector v[n * n] to 2d array m[n][n]. More... | |
void | copyMatrix_2Dto1D (const double *const *m, double *v, long n) |
Function copies 2D matrix saved in 2d array m[n][n] to row-wise vector v[n * n]. More... | |
void | giveUnitMatrix2x2 (double *m) |
Function sets 3x3 matrix to unit matrix. More... | |
void | giveUnitMatrix3x3 (double *m) |
Function sets 3X3 matrix to unit matrix. More... | |
enum mumech::classID |
enum mumech::DiffTypes |
enum mumech::file_mode |
Enumerator | |
---|---|
_READ_ | |
_WRITE_ | |
_ADD_ |
Definition at line 52 of file elementaryFunctions.h.
enum mumech::LCmode |
enum mumech::MeshType |
enum mumech::MeshTypeRead |
enum mumech::Perturb |
enum mumech::PFCmode |
enum mumech::ProblemType |
Enumerator | |
---|---|
PT_Void | |
PT_1D | |
PT_2D | |
PT_3D |
Definition at line 40 of file homogenization.h.
enum mumech::rotation |
enum mumech::SBAtype |
enum mumech::SBM |
enum mumech::STRNotation |
This enum defines a notation how to represent a symmetric second/fourth-order tensor by reducing its order.
The keywords THEORETICAL / VOIGT / MANDEL defines coefficients of particular components. The keywords FEEP / ROW defines order of components. FEEP - order taken over the program FEEP.
The symmetric SECOND-ORDER tensor (strains and stresses) (2x2 in 2d, 3x3 in 3d) can be stored in a vector (1d array) in following notations. Note that t_ij is tensor component at i-th row and j-th column. Same for strain and stress. Note that e_ij is strain tensor component at i-th row and j-th column. Note that s_ij is stress tensor component at i-th row and j-th column.
The symmetric FOURTH-ORDER tensor (stiffness matrix) (2x2x2x2 in 2d, 3x3x3x3 in 3d) can be stored in a matrix (2d array). Then all components of this equation have to be in same notation "s = C * e" (stress = stiffness matrix * strain).
double mumech::acosh | ( | double | x | ) |
Inverse hyperbolic cosine.
Definition at line 121 of file elementaryFunctions.cpp.
Referenced by mumech::eshelbySoluEllipticIntegralsProlateSpheroid::I1(), and mumech::eshelbySoluEllipticIntegralsProlateSpheroid::I2().
void mumech::AddArray2D | ( | const double *const * | src, |
double ** | dest, | ||
long | d1, | ||
long | d2 | ||
) |
Function add 2D double array with dimensions d1xd2 from 'src' to 'dest'.
Definition at line 599 of file elementaryFunctions.cpp.
Referenced by CleanArray2d(), mumech::Problem::give_EshelbyPertFieldsOnePoint(), and mumech::Problem::give_EshelbyPertFieldsOnePoint_external().
void mumech::AddArray3D | ( | double *** | src, |
double *** | dest, | ||
long | d1, | ||
long | d2, | ||
long | d3 | ||
) |
Function add 3D double array with dimensions d1xd2xd3 from 'src' to 'dest'.
Definition at line 609 of file elementaryFunctions.cpp.
Referenced by CleanArray2d().
|
inline |
Function add given number of components from vector 'a' to vector 'b'.
Definition at line 189 of file elementaryFunctions.h.
Referenced by mumech::Mesh::shift_id().
|
inline |
Function add given number of components from vector 'a' to vector 'b', b += a.
Definition at line 178 of file elementaryFunctions.h.
Referenced by mumech::Inclusion::add_EshelbyPertStrain_internal_SIFCM(), mumech::Inclusion::add_EshelbyPertStress_internal_SIFCM(), mumech::InclusionRecord2D::compute_eps_tau(), mumech::InclusionRecord2D::compute_initial_eps_tau(), mumech::InclusionRecord2D::compute_strain_pert_from_eps_zero_ext(), mumech::InclusionRecord2D::compute_strain_pert_from_eps_zero_int(), mumech::Inclusion::Eps02EpsTau(), mumech::Inclusion::give_EshelbyPertStress_internal(), mumech::Dilute::giveDiluteReducedConcentrationFactorOfInclusionInLC(), mumech::Problem::giveFieldsOfPoint(), mumech::Dilute::giveFullDiluteConcentrationFactorOfInclusionInLC(), mumech::MoriTanaka::giveHomogenizedStiffnessMatrix(), mumech::InclusionRecord3D::SBA_updateGlobAndLocStrains(), mumech::InclusionRecord2D::update_eps_tau(), and mumech::Problem::updateEigenstrainsBySBalgorithm_2D().
|
inline |
Function add given number of components from vector 'a' to vector 'b', b += a.
Definition at line 180 of file elementaryFunctions.h.
|
inline |
Function add given number of components multiplied by 'mlt' from vector 'a' to vector 'b'.
Definition at line 196 of file elementaryFunctions.h.
Referenced by mumech::Dilute::giveDiluteReducedConcentrationFactorOfInclusionInLC(), mumech::Dilute::giveFullDiluteConcentrationFactorOfInclusionInLC(), mumech::Dilute::giveHomogenizedStiffnessMatrix(), mumech::MoriTanaka::giveHomogenizedStiffnessMatrix(), mumech::ReussBound::giveHomogenizedStiffnessMatrix(), mumech::VoightBound::giveHomogenizedStiffnessMatrix(), and mumech::DifferentialScheme::giveHomogenizedStiffnessMatrix().
|
inline |
Function allocates ('new' command) a 1d array of bool* pointers set to NULL.
Definition at line 141 of file elementaryFunctions.h.
Referenced by mumech::Mesh::set_elem_rslt_flags(), and mumech::Mesh::set_node_rslt_flags().
|
inline |
Function allocates ('new' command) a 1d array of bool set to zero.
Definition at line 139 of file elementaryFunctions.h.
Referenced by mumech::Mesh::set_elem_rslt_flags(), and mumech::Mesh::set_node_rslt_flags().
|
inline |
Function allocates ('new' command) a 1d array of double.
Definition at line 148 of file elementaryFunctions.h.
|
inline |
Function allocates ('new' command) a 1d array of double* pointers set to NULL.
Definition at line 152 of file elementaryFunctions.h.
Referenced by mumech::mNode::allocate_fields(), mumech::mElement::allocate_fields(), mumech::mElement::give_energy(), and mumech::mElement::save_error().
|
inline |
Function allocates ('new' command) a 1d array of double** pointers set to NULL.
Definition at line 154 of file elementaryFunctions.h.
Referenced by mumech::mNode::allocate_fields(), and mumech::mElement::allocate_fields().
|
inline |
Function allocates ('new' command) a 1d array of double set to zero.
Definition at line 150 of file elementaryFunctions.h.
Referenced by mumech::mElement::give_energy(), mumech::RegGrid::giveHomogenizedStiffnessMatrix(), and mumech::mElement::save_error().
|
inline |
Function allocates ('new' command) a 1d array of int.
Definition at line 145 of file elementaryFunctions.h.
double ** mumech::AllocateArray2D | ( | long | d1, |
long | d2 | ||
) |
Operations with 2d, 3d, 4d arrays of various sizes.
Function allocates a 2D 'double' array by 'new' command.
*** GENERAL ARRAY OPERATIONS *** Function allocates a 2D 'double' array by 'new' command.
Definition at line 542 of file elementaryFunctions.cpp.
References array.
Referenced by mumech::MatrixRecord::allocate_nlc_fields(), mumech::Inclusion::allocate_nlc_fields(), AllocateArray2D(), clanek_3d_vzor(), mumech::Problem::give_EshelbyPertFieldsOnePoint(), mumech::Problem::give_EshelbyPertFieldsOnePoint_external(), mumech::MatrixOperations::giveInverseMatrix(), MultiplyVector(), mumech::Problem::set_approximation(), mumech::Point::set_nlc(), mumech::Problem::updateEpsTauInSBal(), and x2Dx3D_rotation().
void mumech::AllocateArray2D | ( | double **& | array, |
long | d1, | ||
long | d2 | ||
) |
Function allocates a 2D 'double' array by 'new' command.
Definition at line 549 of file elementaryFunctions.cpp.
References _errorr, and AllocateArray2D().
Definition at line 117 of file matrix_vector.cpp.
References mumech::vektor::p, and mumech::vektor::rovna_se().
Referenced by mumech::matice::Determinant_3x3_doplnek(), and gaussovaEliminace().
|
inline |
Function cleans an 2d 'int' array, initialize each value being 0-zero.
Definition at line 268 of file elementaryFunctions.h.
|
inline |
Function cleans an 2d 'double' array, initialize each value being 0-zero.
Definition at line 270 of file elementaryFunctions.h.
References AddArray2D(), AddArray3D(), CopyArray2D(), CopyArray3D(), DivideArray2D(), giveInverseMatrix2x2(), giveInverseMatrix3x3(), giveInverseMatrix3x3to5(), giveInverseMatrix6x6to12(), and SubtractTwoArrays2D().
Referenced by mumech::Inclusion::allocate_nlc_fields(), mumech::MatrixOperations::copy2DeshelbyTensor_reduced2full(), mumech::MatrixOperations::copy3DeshelbyTensor_reduced2full(), mumech::Problem::give_EshelbyPertFieldsOnePoint(), mumech::Problem::give_EshelbyPertFieldsOnePoint_external(), mumech::Problem::set_approximation(), and mumech::MatrixRecord::set_unit_remote_strain().
|
inline |
Functin cleans a 'double' vector, initialize each value being 0-zero.
Definition at line 158 of file elementaryFunctions.h.
Referenced by mumech::MatrixOperations::copy2DeshelbyTensor_reduced2full(), mumech::MatrixOperations::copy3DeshelbyTensor_reduced2full(), mumech::polynomialRootSolution::GauLegF(), mumech::Problem::give_ovlivneni(), mumech::eshelbySoluEllipticIntegralsFlatEllipsoid::giveDerivativesOfEllipticIntegrals(), mumech::eshelbySoluEllipticIntegralsPenny::giveDerivativesOfEllipticIntegrals(), mumech::eshelbySoluEllipticIntegralsFlatEllipsoid::giveEllipticIntegrals(), mumech::eshelbySoluEllipticIntegralsCylinder::giveEllipticIntegrals(), mumech::eshelbySoluEllipticIntegralsEllipticCylinder::giveEllipticIntegrals(), mumech::eshelbySoluEllipticIntegralsPenny::giveEllipticIntegrals(), mumech::Homogenization::giveFullMatrixFromReducedMatrix(), mumech::MoriTanaka::giveHomogenizedStiffnessMatrix(), mumech::ReussBound::giveHomogenizedStiffnessMatrix(), mumech::VoightBound::giveHomogenizedStiffnessMatrix(), mumech::eshelbySoluUniformFieldPenny::giveLijkEXT(), mumech::eshelbySoluUniformFieldFlatEllipsoid::giveLijkEXT(), mumech::eshelbySoluUniformFieldCylinder::giveLijkEXT(), mumech::eshelbySoluUniformFieldEllipticCylinder::giveLijkEXT(), mumech::eshelbySoluUniformFieldPenny::giveLijkINT(), mumech::eshelbySoluUniformFieldFlatEllipsoid::giveLijkINT(), mumech::eshelbySoluUniformFieldCylinder::giveLijkINT(), mumech::eshelbySoluUniformFieldEllipticCylinder::giveLijkINT(), giveMatrixMatrixProduct(), giveMatrixVectorProduct(), mumech::Homogenization::giveProductOfReducedMatrices(), mumech::MatrixOperations::giveUnitSMatrixFull_2d(), mumech::MatrixOperations::giveUnitSMatrixFull_3d(), mumech::MatrixOperations::giveUnitSMatrixReduced_2d(), mumech::MatrixOperations::giveUnitSMatrixReduced_3d(), print_graf(), and mumech::selfBalanceAlgorithm::totalEigStrainInInclCentroidsUpdate().
|
inline |
Functin cleans a 'int' vector, initialize each value being 0-zero.
Definition at line 160 of file elementaryFunctions.h.
|
inline |
Functin cleans a 'long' vector, initialize each value being 0-zero.
Definition at line 162 of file elementaryFunctions.h.
void mumech::CloseFile | ( | FILE * | file | ) |
description: function closes a previously opened file and tests the succes of the closing note: function requires the global (outer) definition of @*file
Function closes a previously opened file and tests the succes of the closing.
Definition at line 174 of file elementaryFunctions.cpp.
References FileError.
Referenced by GetRangeOfFileColumns(), GetRangeOfFileColumns_ii(), GetRangeOfFileRows(), ovlivneni(), print_graf(), ReadDataTo3DArray(), ReadDataToArray(), and ReadDataToVector().
bool mumech::cmp_vtk_file | ( | const char * | file1, |
const char * | file2, | ||
int | verbose | ||
) |
Compare two VTK files. Return false if same. [ return hodnota byly kdysi opacna ].
Definition at line 268 of file vtk.cpp.
References _errorr, _errorr2, _STRCMP, gelibspace::areSame(), CASE, gelibspace::Stream::close(), errol, gelibspace::Stream::file(), gelibspace::FP_scan_expected_word(), FP_scan_expected_word_exit, gelibspace::FP_scan_word(), gelibspace::FP_skip_line(), gelibspace::Stream::isFile(), gelibspace::Stream::open(), SP_scan_expected_number_exit, SP_scan_expected_word2_exit, SP_scan_expected_word_exit, gelibspace::SP_scan_number(), gelibspace::SP_scan_word(), gelibspace::STRM_void, gelibspace::VTKR_cd, gelibspace::VTKR_cells, gelibspace::VTKR_data, gelibspace::VTKR_fields, gelibspace::VTKR_pd, gelibspace::VTKR_points, and gelibspace::VTKR_void.
Referenced by cmp_vtk_file_delete_first().
void mumech::convertTensorStrain | ( | bool | twodim, |
double * | tens, | ||
STRNotation | oldNot, | ||
STRNotation | newNot | ||
) |
Definition at line 1661 of file problem.cpp.
References _errorr, mumech::MatrixOperations::convert2Dtensor_TRtoROW_notation(), mumech::MatrixOperations::convert2Dtensor_TRtoVR_notation(), mumech::MatrixOperations::convert3Dtensor_TFEEPtoROW_notation(), mumech::MatrixOperations::convert3Dtensor_TRtoVR_notation(), STRN_THEORETICAL_FEEP, STRN_THEORETICAL_ROW, and STRN_VOIGT_FEEP.
Referenced by mumech::Problem::giveFieldsOfPoint().
void mumech::convertTensorStress | ( | bool | twodim, |
double * | tens, | ||
STRNotation | oldNot, | ||
STRNotation | newNot | ||
) |
Definition at line 1680 of file problem.cpp.
References _errorr, mumech::MatrixOperations::convert2Dtensor_TRtoROW_notation(), mumech::MatrixOperations::convert3Dtensor_TFEEPtoROW_notation(), STRN_THEORETICAL_FEEP, STRN_THEORETICAL_ROW, and STRN_VOIGT_FEEP.
Referenced by mumech::Problem::giveFieldsOfPoint().
void mumech::CopyArray2D | ( | const double *const * | src, |
double ** | dest, | ||
long | d1, | ||
long | d2 | ||
) |
Function copy two 2D double arrays with dimensions d1xd2 from 'src' to 'dest'.
Function copy two 2D double arrays with dimensions d1xd2 from 'src' to 'dest'.
Definition at line 573 of file elementaryFunctions.cpp.
Referenced by CleanArray2d(), mumech::Problem::give_EshelbyPertFieldsOnePoint(), and mumech::MatrixOperations::giveInverseMatrix().
void mumech::CopyArray3D | ( | const double *** | src, |
double *** | dest, | ||
long | d1, | ||
long | d2, | ||
long | d3 | ||
) |
Function copy two 3D double arrays with dimensions d1xd2xd3 from 'src' to 'dest'.
Definition at line 585 of file elementaryFunctions.cpp.
Referenced by CleanArray2d().
|
inline |
Function copies 2D matrix saved in row-wise vector v[n * n] to 2d array m[n][n].
v | Source vector. |
m | Return matrix. |
n | Size of the matrix. |
Definition at line 315 of file elementaryFunctions.h.
Referenced by mumech::MatrixOperations::giveInverseMatrix().
|
inline |
Function copies 2D matrix saved in 2d array m[n][n] to row-wise vector v[n * n].
m | Source matrix. |
v | Return vector. |
n | Size of the matrix. |
Definition at line 323 of file elementaryFunctions.h.
|
inline |
Function copy given number of components from vector, 'a' to vector 'b'.
Definition at line 171 of file elementaryFunctions.h.
Referenced by mumech::InclusionRecord3D::addtot(), mumech::selfBalanceAlgorithm::copyGlobTotalEigStrainsToAuxVector(), mumech::Problem::findAffectedInclusions(), mumech::Mesh::generate_regular_mesh(), mumech::Inclusion::give_EshelbyMatrixReduced(), mumech::Problem::give_EshelbyPertFieldsOnePoint_external(), mumech::MatrixRecord::give_globHomog_Displc(), mumech::MatrixRecord::give_globHomog_Strain(), mumech::MatrixRecord::give_globHomog_Stress(), mumech::Problem::give_ovlivneni(), mumech::Inclusion::give_StiffnessMatrixReduced(), mumech::mElement::give_strain(), mumech::mElement::give_stress(), mumech::Inclusion::give_TeMatrix_G2L(), mumech::Inclusion::give_TeMatrix_L2G(), mumech::Dilute::giveDiluteReducedConcentrationFactorOfInclusionInLC(), mumech::Dilute::giveFullDiluteConcentrationFactorOfInclusionInLC(), mumech::RegGrid::giveHomogenizedStiffnessMatrix(), mumech::DifferentialScheme::giveHomogenizedStiffnessMatrix(), mumech::MatrixOperations::giveIsoTensAndVectorProduct(), mumech::eshelbySoluUniformField::giveLijkEXT(), giveMatrixVectorProduct(), mumech::MatrixRecord::giveReducedStiffMatrix(), mumech::MatrixOperations::giveTVproduct_3is3x3to5and3(), mumech::MatrixOperations::giveTVproduct_6is6x6to12and6(), mumech::InclusionRecord3D::init_EigStrain_LC(), mumech::InclusionRecord3D::initialize(), mumech::InclusionRecord2D::initialize(), mumech::mElement::mElement(), mumech::Problem::printVtkFileCompleteInclRec(), mumech::Inclusion::rotateDisplc_L2G(), mumech::Inclusion::rotateStrain_G2L(), mumech::Inclusion::rotateStrain_L2G(), mumech::InclusionRecord2D::SBA_computeInitialStrains(), mumech::MatrixRecord::set_Remote_strain_for_lc(), and mumech::selfBalanceAlgorithm::totalEigStrainInInclCentroidsUpdate().
|
inline |
Function copy given number of components from vector, 'a' to vector 'b'.
Definition at line 173 of file elementaryFunctions.h.
|
inline |
Function copy given number of components from vector, 'a' to vector 'b'.
Definition at line 175 of file elementaryFunctions.h.
|
inline |
Function deletes a 2D 'bool' array of dimension d1 x ??, allocated by new.
Definition at line 260 of file elementaryFunctions.h.
References array.
Referenced by clanek_3d_vzor(), DeleteArray3D(), mumech::Problem::give_EshelbyPertFieldsOnePoint(), mumech::Problem::give_EshelbyPertFieldsOnePoint_external(), mumech::MatrixOperations::giveInverseMatrix(), mumech::Inclusion::~Inclusion(), mumech::InclusionRecord3D::~InclusionRecord3D(), mumech::MatrixRecord::~MatrixRecord(), mumech::mElement::~mElement(), mumech::Mesh::~Mesh(), and mumech::Point::~Point().
|
inline |
Function deletes a 2D 'double' array of dimension d1 x ??, allocated by new.
Definition at line 262 of file elementaryFunctions.h.
References array.
|
inline |
Function deletes a 3D 'double' array of dimension d1 x d2 x ??, allocated by new.
Definition at line 264 of file elementaryFunctions.h.
References array, and DeleteArray2D().
Referenced by mumech::mElement::~mElement(), and mumech::mNode::~mNode().
void mumech::DivideArray2D | ( | double ** | a, |
double | val, | ||
long | d1, | ||
long | d2 | ||
) |
Function divides 2D double array 'a' with dimensions d1xd2 by value 'val'.
Definition at line 621 of file elementaryFunctions.cpp.
Referenced by CleanArray2d().
|
inline |
Function divides 'n' components of field 'a' by value 'val'.
Definition at line 199 of file elementaryFunctions.h.
Referenced by mumech::RegGrid::giveHomogenizedStiffnessMatrix().
void mumech::e | ( | int | i | ) |
Definition at line 45 of file matrix_vector.cpp.
Referenced by compare_grafs(), mumech::matice::Determinant_3x3_doplnek(), Ellipse(), Ellipsoid(), energyTest01(), mumech::polynomialRootSolution::GauHerQ(), mumech::polynomialRootSolution::GauLegF(), gelibspace::Dmtrx::GaussSolve(), mumech::Mesh::give_error(), mumech::Problem::give_EshelbyPertFieldsOnePoint(), intersection_2d_core_4(), intersection_3d_core_6(), mumech::Inclusion::is_inside_of_BB(), plstrain_2I_2d(), plstrain_2I_3d(), print_graf(), mumech::Problem::read_input_file(), mumech::MatrixRecord::set_E_nu(), mumech::Inclusion::set_Poissons_ratio(), and mumech::Problem::updateEigenstrainsBySBalgorithm_2D().
void mumech::enter | ( | ) |
Definition at line 39 of file matrix_vector.cpp.
Referenced by mumech::matice::Determinant_3x3_doplnek(), and gaussovaEliminace().
Definition at line 124 of file matrix_vector.cpp.
References change_radky(), mumech::vektor::define(), mumech::vektor::deleno(), enter(), mumech::vektor::g(), mumech::matice::g(), mumech::vektor::krat(), mumech::vektor::odecist(), mumech::vektor::p, mumech::matice::r, and mumech::matice::s.
Referenced by mumech::matice::Determinant_3x3_doplnek(), mumech::Inclusion::update_approximations(), and mumech::Problem::updateEigenstrainsBySBalgorithm_2D().
int mumech::GetRangeOfFileColumns | ( | char * | p_name | ) |
Function gives the number columns of the file such as is not necessarilly.
Definition at line 271 of file elementaryFunctions.cpp.
References _errorr, CloseFile(), GetRangeOfFileRows(), and OpenFile().
Referenced by ReadDataToArray().
int mumech::GetRangeOfFileColumns_ii | ( | char * | p_name | ) |
Function gives the number columns of a file structured as a table.
Definition at line 300 of file elementaryFunctions.cpp.
References CloseFile(), and OpenFile().
Referenced by ReadDataToArray().
int mumech::GetRangeOfFileRows | ( | char * | p_name | ) |
Funkce zapise LENGTH bytu z BUFFER do docasneho souboru.
Function gives the number of lins of a file.
Pote je jmeno souboru zruseno v filesystemu(unlink). Vraci deskriptor souboru. Operations with arrays of chars *** STRING PROCESSING ***
Definition at line 250 of file elementaryFunctions.cpp.
References CloseFile(), and OpenFile().
Referenced by GetRangeOfFileColumns(), ReadDataToArray(), and ReadDataToVector().
double mumech::give_curvature | ( | double | x, |
double | a, | ||
double | b | ||
) |
return b * a / pow ( a*a + cos(x) * cos(x) * (b*b-a*a) , 1.5);
Definition at line 114 of file elementaryFunctions.cpp.
References PI.
Referenced by mumech::Mesh::generate_regularSphereMesh_3d().
double mumech::give_quadNormTwoVectors | ( | const double * | v1, |
const double * | v2, | ||
int | n | ||
) |
Function returns the quadratic norm of two vectors of length 'n'.
Definition at line 354 of file elementaryFunctions.cpp.
References SQR.
Referenced by mumech::selfBalanceAlgorithm::giveQuadNormMultEigstrain(), and MultiplyVector().
double mumech::give_VectorVectorProduct | ( | const double * | v1, |
const double * | v2, | ||
long | n | ||
) |
Operations with 1d arrays of various length.
Function returns dot product of two vectors of length n.
*** GENERAL VECTOR OPERATIONS ***
Definition at line 345 of file elementaryFunctions.cpp.
Referenced by mumech::Inclusion::compute_supplement_energy(), mumech::Mesh::give_error(), and MultiplyVector().
void mumech::giveInverseMatrix2x2 | ( | double * | answer, |
const double * | m | ||
) |
Function computes inverse of the row-wise saved 2x2 matrix 'm'.
Definition at line 645 of file elementaryFunctions.cpp.
Referenced by CleanArray2d(), and giveInverseMatrix3x3to5().
void mumech::giveInverseMatrix3x3 | ( | double * | answer, |
const double * | m | ||
) |
Function computes inverse of the row-wise saved 3x3 matrix 'm'.
Definition at line 656 of file elementaryFunctions.cpp.
Referenced by CleanArray2d(), and giveInverseMatrix6x6to12().
void mumech::giveInverseMatrix3x3to5 | ( | double * | answer, |
const double * | m | ||
) |
Function computes inverse of the eshelby-like 3x3 matrix 'm' saved in reduced 3x3to5 form.
Definition at line 675 of file elementaryFunctions.cpp.
References giveInverseMatrix2x2().
Referenced by CleanArray2d(), mumech::InclusionRecord2D::compute_eps_tau(), mumech::InclusionRecord2D::compute_initial_eps_tau(), mumech::InclusionRecord2D::compute_strain_pert_from_eps_zero_ext(), mumech::InclusionRecord2D::compute_strain_pert_from_eps_zero_int(), mumech::Inclusion::Eps02EpsTau(), mumech::Homogenization::giveInverseOfReducedMatrix(), and mumech::InclusionRecord2D::update_eps_tau().
void mumech::giveInverseMatrix6x6to12 | ( | double * | answer, |
const double * | m | ||
) |
Function computes inverse of the eshelby-like 3x3 matrix 'm' saved in reduced 6x6to12 form.
Definition at line 682 of file elementaryFunctions.cpp.
References giveInverseMatrix3x3().
Referenced by CleanArray2d(), mumech::eshelbySoluUniformField::giveEshelbyTensorInverse(), and mumech::Homogenization::giveInverseOfReducedMatrix().
void mumech::giveMatrixMatrixProduct | ( | const double * | mtrx1, |
const double * | mtrx2, | ||
double * | resMtrx, | ||
long | n | ||
) |
Function gives the product of two regular matrices.
Both matrices are saved in 'row-by-row' C arrangement as 1D arrays.
mtrx1 | Regular matrix of dimension n x n. |
mtrx2 | Regular matrix of dimension n x n. |
resMtrx | Resulting matrix of the product of mtrx1 and mtrx2. |
n | Number of rows and columns of all three matrices. |
Both matrices are saved in 'row-by-row' C arrangement as 1D arrays.
Definition at line 745 of file elementaryFunctions.cpp.
References _at, CleanVector(), and errol.
Referenced by mumech::Dilute::giveFullDiluteConcentrationFactorOfInclusionInLC(), mumech::Homogenization::giveFullMatrixInGCSFromFullMatrixInLCS(), mumech::Homogenization::giveFullMatrixInLCSFromFullMatrixInGCS(), mumech::MoriTanaka::giveHomogenizedStiffnessMatrix(), mumech::RegGrid::giveHomogenizedStiffnessMatrix(), mumech::DifferentialScheme::giveHomogenizedStiffnessMatrix(), mumech::Homogenization::giveProductOfReducedMatrixRegularMatrix(), mumech::Homogenization::giveProductOfRegularMatrixReducedMatrix(), and giveUnitMatrix3x3().
void mumech::giveMatrixVectorProduct | ( | const double * | mtrx, |
const double * | vect, | ||
double * | resVect, | ||
long | n | ||
) |
Function gives the product of a regular matrix with a vector.
Both matrix and vector are saved in 'row-by-row' C arrangement as 1D arrays.
Definition at line 708 of file elementaryFunctions.cpp.
References _at, CleanVector(), and CopyVector().
Referenced by giveUnitMatrix3x3(), mumech::Inclusion::rotateDisplc_L2G(), mumech::Inclusion::rotateStrain_G2L(), mumech::Inclusion::rotateStrain_L2G(), and mumech::Inclusion::transformCoords_G2L().
|
inline |
Function returns sum of all member of array 'a'.
Definition at line 307 of file elementaryFunctions.h.
References GiveSumMembersVector().
Referenced by mumech::MatrixRecord::remote_strain_is_unit().
|
inline |
Function returns sum of all member of 'array'.
Definition at line 167 of file elementaryFunctions.h.
Referenced by GiveSumMembersArray2D().
void mumech::giveTransposedMatrix | ( | const double * | mtrx, |
double * | T_mtrx, | ||
int | n | ||
) |
Function gives the trasposition of a matrix saved in row-by-row C arrangement.
Function gives the trasposition of a matrix.
mtrx | ' x ' matrix to be transposed |
T_mtrx | ' x ' resulting transposed matrix |
n | number of rows of both matrices |
Definition at line 766 of file elementaryFunctions.cpp.
References _at.
Referenced by mumech::TransformTensors::give_TeInv(), mumech::TransformTensors::give_TInv(), and giveUnitMatrix3x3().
|
inline |
Function sets 3x3 matrix to unit matrix.
Definition at line 326 of file elementaryFunctions.h.
Referenced by mumech::TransformTensors::give_T(), and mumech::TransformTensors::give_TInv().
|
inline |
Function sets 3X3 matrix to unit matrix.
Definition at line 328 of file elementaryFunctions.h.
References giveMatrixMatrixProduct(), giveMatrixVectorProduct(), giveTransposedMatrix(), printMatrix(), printVector(), and printVectorRowForm().
Referenced by mumech::TransformTensors::give_T(), and mumech::TransformTensors::give_TInv().
double mumech::giveVectorLength | ( | double * | point_1, |
double * | point_2 | ||
) |
Function returns the length of a vector given by 3D coordinates of two points.
point_1 | - pointer to coordinates of 1st point |
point_2 | - pointer to coordinates of 2nd point |
double mumech::giveVectorLength | ( | const double * | point_1, |
const double * | point_2 | ||
) |
Definition at line 437 of file elementaryFunctions.cpp.
References SQR.
Referenced by MultiplyVector().
double mumech::giveVectorLength | ( | double | rx, |
double | ry, | ||
double | rz | ||
) |
Function returns the length of a vector given by its components.
rx | x component of the vector r |
ry | y component of the vector r |
rz | z component of the vector r |
Definition at line 449 of file elementaryFunctions.cpp.
References SQR.
double mumech::giveVolumeEllipsoid | ( | double | a, |
double | b, | ||
double | c | ||
) |
Function gives the volume of an allipsoid defined by its semiaxes a, b, c.
The order of semiaxes doesn't matter.
Definition at line 109 of file elementaryFunctions.cpp.
References PI.
void mumech::GoToEndOfLine | ( | FILE * | fr | ) |
description: functions moves the cursor the the end of line (EOLN) in a text file last edit: 1.10.2006
Functions moves the cursor the the end of line (EOLN); in a text file.
Definition at line 185 of file elementaryFunctions.cpp.
bool mumech::isNumberPresentInVector | ( | int | number, |
int * | vect, | ||
int | range | ||
) |
description: function returns TRUE/FALSE if a occurs/doesn't occurs in a , respectively
function returns TRUE/FALSE if a occurs/doesn't occurs in a , respectively
Definition at line 460 of file elementaryFunctions.cpp.
Referenced by MultiplyVector().
|
inline |
Inclusion shapes' type - enum to string.
Definition at line 174 of file types.h.
References _errorr, IS_CIRCLE, IS_ELLIPSE, IS_ELLIPSOID, IS_OBLATE_SPHEROID, IS_PROLATE_SPHEROID, and IS_SPHERE.
Referenced by mumech::TransformTensors::give_T(), mumech::TransformTensors::give_Te(), mumech::TransformTensors::give_TeInv(), mumech::TransformTensors::give_TInv(), mumech::InclusionRecord3D::giveInclusionGeometry(), and mumech::InclusionRecord2D::giveInclusionGeometry().
void mumech::LatexEnd | ( | FILE * | fw | ) |
description: function prints the end (closing part) of LaTEX document last edit: 16.05.2007
Function prints the end (closing part); of LaTEX document.
Definition at line 210 of file elementaryFunctions.cpp.
void mumech::LatexPreambule | ( | FILE * | fw | ) |
description: function prints a simple preamble of a LaTEX document last edit: 16.05.2007
Function prints a simple preamble of a LaTEX document.
Definition at line 196 of file elementaryFunctions.cpp.
void mumech::lubksb | ( | double ** | a, |
int | n, | ||
int * | indx, | ||
double | b[] | ||
) |
Definition at line 349 of file matrixOperations.cpp.
Referenced by mumech::MatrixOperations::giveInverseMatrix_core().
void mumech::ludcmp | ( | double ** | a, |
int | n, | ||
int * | indx, | ||
double * | d | ||
) |
Definition at line 290 of file matrixOperations.cpp.
References _errorr1.
Referenced by mumech::MatrixOperations::giveInverseMatrix_core().
Definition at line 52 of file matrix_vector.cpp.
References mumech::matice::g(), mumech::vektor::p, mumech::matice::r, mumech::matice::s, mumech::vektor::v, and mumech::vektor::vynulovat().
Referenced by mumech::InclusionRecord2D::compute_eps_tau_back(), mumech::InclusionRecord2D::compute_from_eps_tau(), mumech::InclusionRecord2D::compute_strain_pert_from_eps_zero_ext(), mumech::InclusionRecord2D::compute_strain_pert_from_eps_zero_int(), mumech::matice::Determinant_3x3_doplnek(), mumech::InclusionRecord2D::getDisplacement(), mumech::InclusionRecord2D::giveExtStrainPert(), and rotate_vector().
|
inline |
Function multiplies 'n' components of field 'a' by value 'val'.
Definition at line 202 of file elementaryFunctions.h.
References AllocateArray2D(), array, give_quadNormTwoVectors(), give_VectorVectorProduct(), giveVectorLength(), isNumberPresentInVector(), ReadDataTo3DArray(), ReadDataToArray(), and ReadDataToVector().
Referenced by mumech::InclusionRecord2D::compute_eps_tau(), mumech::InclusionRecord2D::compute_initial_eps_tau(), mumech::InclusionRecord2D::compute_strain_pert_from_eps_zero_ext(), mumech::InclusionRecord2D::compute_strain_pert_from_eps_zero_int(), mumech::Inclusion::Eps02EpsTau(), and mumech::InclusionRecord2D::update_eps_tau().
void mumech::OpenFile | ( | FILE ** | file, |
char * | name, | ||
const char | mode[] | ||
) |
Operations with file descriptors.
Functions opens a file and tests the succes of the opening.
*** FILE PROCESSING *** description: functions opens a file and tests the succes of the opening note: function requires the global (outer) definition of @*file
Definition at line 137 of file elementaryFunctions.cpp.
References FileError.
Referenced by GetRangeOfFileColumns(), GetRangeOfFileColumns_ii(), GetRangeOfFileRows(), ovlivneni(), print_graf(), ReadDataTo3DArray(), ReadDataToArray(), and ReadDataToVector().
void mumech::OpenFile | ( | FILE *& | file, |
char | name[], | ||
int | mode | ||
) |
description: functions opens a file and tests the succes of the opening note: function requires the global (outer) definition of @*file
Functions opens a file and tests the succes of the opening.
Definition at line 148 of file elementaryFunctions.cpp.
void mumech::print_auxs | ( | bool | lgc, |
Stream * | stream, | ||
XMLElement * | da, | ||
const char * | auxs | ||
) |
Definition at line 214 of file vtk.cpp.
References _errorr, gelibspace::Stream::file(), tinyxml2::XMLNode::InsertEndChild(), tinyxml2::XMLDocument::NewText(), and gelibspace::Stream::tix_doc().
Referenced by mumech::Mesh::print_geometry_file_vtk(), and mumech::Problem::printVtkFileCompleteInclRec().
void mumech::print_values | ( | char * | auxs, |
int | n, | ||
const double * | values, | ||
int | precision | ||
) |
Definition at line 155 of file vtk.cpp.
References _errorr, errol, and NUM_DIGITS_IN_PRINTED_EXPONENT.
Referenced by mumech::Problem::printVtkFileCompleteInclRec().
void mumech::print_values_Scalar | ( | char * | auxs, |
const double * | values, | ||
long | len, | ||
int | precision | ||
) |
len = pocet scalar cisel
Definition at line 175 of file vtk.cpp.
References NUM_DIGITS_IN_PRINTED_EXPONENT.
Referenced by mumech::Mesh::print_geometry_file_vtk().
void mumech::print_values_Tensor | ( | char * | auxs, |
const double * | values, | ||
bool | twodim, | ||
int | precision | ||
) |
dim == dimenze vstupnich dat - 2d ano nebo ne; values musi byt v notaci STRN_THEORETICAL_FEEP
dim == dimenze vstupnich dat - 2d ano nebo ne; values musi byt v notaci STRN_THEORETICAL_FEEP !!!
Definition at line 197 of file vtk.cpp.
References NUM_DIGITS_IN_PRINTED_EXPONENT.
Referenced by mumech::Mesh::print_geometry_file_vtk().
void mumech::print_values_Vector | ( | char * | auxs, |
const double * | values, | ||
bool | twodim, | ||
int | precision | ||
) |
dim == dimenze vstupnich dat - 2d ano nebo ne
Definition at line 185 of file vtk.cpp.
References NUM_DIGITS_IN_PRINTED_EXPONENT.
Referenced by mumech::Mesh::print_geometry_file_vtk().
void mumech::print_valuesi | ( | char * | auxs, |
int | n, | ||
const int * | values, | ||
int | rv | ||
) |
Definition at line 1497 of file problem.cpp.
References errol.
Referenced by mumech::Problem::printVtkFileCompleteInclRec().
XMLElement * mumech::print_VTK_data_head | ( | Stream * | stream, |
const char * | name, | ||
char | type, | ||
char | format, | ||
int | slen | ||
) |
Definition at line 125 of file vtk.cpp.
References _errorr, errol, gelibspace::Stream::file(), tinyxml2::XMLNode::InsertEndChild(), gelibspace::Stream::isFile(), tinyxml2::XMLDocument::NewElement(), tinyxml2::XMLElement::SetAttribute(), gelibspace::Stream::tix_doc(), and gelibspace::Stream::tixel().
Referenced by mumech::Mesh::print_geometry_file_vtk(), and mumech::Problem::printVtkFileCompleteInclRec().
void mumech::print_VTK_elems_head | ( | Stream * | stream, |
long | noIncl | ||
) |
Definition at line 1395 of file problem.cpp.
References gelibspace::Stream::file(), tinyxml2::XMLNode::InsertEndChild(), gelibspace::Stream::isFile(), tinyxml2::XMLDocument::NewElement(), tinyxml2::XMLDocument::NewText(), tinyxml2::XMLElement::SetAttribute(), tinyxml2::XMLElement::ShallowClone(), gelibspace::Stream::tix_doc(), and gelibspace::Stream::tixel().
Referenced by mumech::Problem::printVtkFileCompleteInclRec().
XMLElement* mumech::print_VTK_field_head | ( | Stream * | stream, |
const char * | name, | ||
char | format, | ||
int | slen, | ||
int | noincl | ||
) |
Definition at line 1438 of file problem.cpp.
References errol, gelibspace::Stream::file(), and gelibspace::Stream::isFile().
Referenced by mumech::Problem::printVtkFileCompleteInclRec().
void mumech::print_VTK_FINISH | ( | Stream * | stream | ) |
Definition at line 224 of file vtk.cpp.
References gelibspace::Stream::close().
Referenced by mumech::Mesh::print_geometry_file_vtk(), and mumech::Problem::printVtkFileCompleteInclRec().
void mumech::print_VTK_head | ( | FILE * | stream, |
const char * | type | ||
) |
Definition at line 63 of file vtk.cpp.
Referenced by mumech::Mesh::print_geometry_file_vtk(), and mumech::Problem::printVtkFileCompleteInclRec().
void mumech::print_VTK_init_cell_data | ( | Stream * | stream, |
long | n | ||
) |
Definition at line 113 of file vtk.cpp.
References gelibspace::Stream::file(), tinyxml2::XMLNode::InsertEndChild(), gelibspace::Stream::isFile(), tinyxml2::XMLDocument::NewElement(), gelibspace::Stream::relink_downL(), gelibspace::Stream::tix_doc(), and gelibspace::Stream::tixel().
Referenced by mumech::Mesh::print_geometry_file_vtk().
void mumech::print_VTK_init_point_data | ( | Stream * | stream, |
long | n | ||
) |
Definition at line 105 of file vtk.cpp.
References gelibspace::Stream::file(), tinyxml2::XMLNode::InsertEndChild(), gelibspace::Stream::isFile(), tinyxml2::XMLDocument::NewElement(), gelibspace::Stream::relink_downL(), gelibspace::Stream::tix_doc(), and gelibspace::Stream::tixel().
Referenced by mumech::Mesh::print_geometry_file_vtk(), and mumech::Problem::printVtkFileCompleteInclRec().
XMLElement * mumech::print_VTK_nodes_head | ( | Stream * | stream, |
long | n | ||
) |
Definition at line 82 of file vtk.cpp.
References gelibspace::Stream::file(), tinyxml2::XMLNode::InsertEndChild(), gelibspace::Stream::isFile(), tinyxml2::XMLNode::LastChild(), tinyxml2::XMLDocument::NewElement(), tinyxml2::XMLElement::SetAttribute(), gelibspace::Stream::tix_doc(), gelibspace::Stream::tixel(), and tinyxml2::XMLElement::ToElement().
Referenced by mumech::Mesh::print_geometry_file_vtk(), and mumech::Problem::printVtkFileCompleteInclRec().
void mumech::print_VTK_START | ( | Stream * | stream, |
const char * | filename | ||
) |
Print head of vtk file.
Definition at line 41 of file vtk.cpp.
References tinyxml2::COLLAPSE_WHITESPACE, tinyxml2::XMLNode::InsertEndChild(), gelibspace::Stream::isFile(), tinyxml2::XMLDocument::NewDeclaration(), tinyxml2::XMLDocument::NewElement(), gelibspace::Stream::open(), tinyxml2::XMLElement::SetAttribute(), gelibspace::STRM_file, and gelibspace::STRM_tixel.
Referenced by mumech::Mesh::print_geometry_file_vtk(), and mumech::Problem::printVtkFileCompleteInclRec().
void mumech::PrintMatrix | ( | matice & | mat, |
FILE *& | soubor | ||
) |
Definition at line 83 of file matrix_vector.cpp.
References mumech::matice::g(), mumech::matice::r, mumech::matice::s, and mumech::vektor::v.
Referenced by mumech::matice::Determinant_3x3_doplnek().
void mumech::printMatrix | ( | double * | mtrx, |
int | n, | ||
const char * | notice | ||
) |
Function prints a matrix which are saved in 'row-by-row' C arrangement as 1D arrays.
Definition at line 783 of file elementaryFunctions.cpp.
References _at, ABS, and MACHINE_EPS_PRN.
Referenced by giveUnitMatrix3x3().
void mumech::printMatrix | ( | double ** | mtrx, |
int | n, | ||
const char * | notice | ||
) |
Function prints a matrix which is saved as 2D array.
Definition at line 808 of file elementaryFunctions.cpp.
References ABS, and MACHINE_EPS_PRN.
void mumech::PrintProgress | ( | double | procento, |
int | incr | ||
) |
Operations with arrays of chars.
*** VARIOUS FUNCTIONS ***
Definition at line 75 of file elementaryFunctions.cpp.
void mumech::PrintProgress | ( | clock_t * | p_time | ) |
Definition at line 92 of file elementaryFunctions.cpp.
void mumech::printVector | ( | double * | vect, |
int | n, | ||
const char * | notice | ||
) |
Function prints the vector of double values as column.
Definition at line 833 of file elementaryFunctions.cpp.
References ABS, and MACHINE_EPS_PRN.
Referenced by giveUnitMatrix3x3().
void mumech::printVector | ( | int * | vect, |
int | n, | ||
const char * | notice | ||
) |
Function prints the vector of integers as column.
Definition at line 855 of file elementaryFunctions.cpp.
void mumech::printVectorRowForm | ( | double * | vect, |
int | n, | ||
const char * | notice | ||
) |
Function prints the vector of double values as row.
Definition at line 874 of file elementaryFunctions.cpp.
References ABS, and MACHINE_EPS_PRN.
Referenced by giveUnitMatrix3x3(), and mumech::selfBalanceAlgorithm::printTotEigenStrains().
void mumech::printVectorRowForm | ( | int * | vect, |
int | n, | ||
const char * | notice | ||
) |
Function prints the vector of integers as row.
Definition at line 896 of file elementaryFunctions.cpp.
void mumech::PrintVektor | ( | vektor & | vekt | ) |
Definition at line 73 of file matrix_vector.cpp.
References mumech::vektor::p, and mumech::vektor::v.
Referenced by mumech::matice::Determinant_3x3_doplnek().
void mumech::ReadDataTo3DArray | ( | double *** | p_array, |
char * | p_file_name, | ||
int | no_fields, | ||
int | no_rows, | ||
int | no_columns | ||
) |
description: function initializes a 3D 'double' array by values from a given file
Definition at line 383 of file elementaryFunctions.cpp.
References CloseFile(), and OpenFile().
Referenced by MultiplyVector().
void mumech::ReadDataToArray | ( | double ** | p_array, |
char * | p_file_name | ||
) |
description: function initializes a 2D 'double' array from a given file
Definition at line 364 of file elementaryFunctions.cpp.
References CloseFile(), GetRangeOfFileColumns_ii(), GetRangeOfFileRows(), and OpenFile().
Referenced by MultiplyVector().
void mumech::ReadDataToArray | ( | int ** | p_array, |
char * | p_file_name | ||
) |
description: function initializes a 3D 'int' array by values from a given file
Definition at line 401 of file elementaryFunctions.cpp.
References CloseFile(), GetRangeOfFileColumns(), GetRangeOfFileRows(), and OpenFile().
void mumech::ReadDataToVector | ( | int * | p_array, |
char * | p_file_name | ||
) |
description: function initializes an 'int' vector by values from a given file
Definition at line 420 of file elementaryFunctions.cpp.
References CloseFile(), GetRangeOfFileRows(), and OpenFile().
Referenced by MultiplyVector().
void mumech::rotate_vector | ( | vektor & | V, |
double | angle | ||
) |
Definition at line 94 of file matrix_vector.cpp.
References mumech::vektor::g(), mumech::matice::g(), MaticexVektor(), and mumech::vektor::rovna_se().
Referenced by mumech::Inclusion::add_EshelbyPertStress_internal_SIFCM(), mumech::matice::Determinant_3x3_doplnek(), and mumech::Inclusion::give_EshelbyPertStress_internal().
Definition at line 62 of file matrix_vector.cpp.
References mumech::vektor::p, and mumech::vektor::v.
Referenced by mumech::matice::Determinant_3x3_doplnek().
void mumech::scan_DATA_field_head | ( | Stream * | stream, |
Stream * | strm, | ||
const char * | str, | ||
char | type, | ||
int | nexc, | ||
char | format, | ||
const char * | name | ||
) |
scan_DATA_field_head
stream | |
strm | |
str | |
type | |
nexc | |
format | |
name |
Definition at line 241 of file vtk.cpp.
References CASE, errol, gelibspace::Stream::file(), FP_scan_expected_word_exit, gelibspace::FP_skip_line(), gelibspace::Stream::isFile(), gelibspace::Stream::redefine(), SP_scan_expected_number_exit, SP_scan_expected_word_exit, gelibspace::Stream::tixel(), and gelibspace::XP_giveDAtext().
Referenced by mumech::Mesh::read_geometry_file_vtk(), and mumech::Problem::read_input_file().
void mumech::scan_FIELD_head | ( | FILE * | stream, |
long | noincl, | ||
int | nexc, | ||
char | format, | ||
const char * | name | ||
) |
scan_DATA_field_head
stream | |
strm | |
str | |
type | |
nexc | |
format | |
name |
Definition at line 330 of file problem.cpp.
References CASE, errol, FP_scan_expected_number_exit, and FP_scan_expected_word_exit.
Referenced by mumech::Problem::read_input_file().
void mumech::SubtractTwoArrays2D | ( | const double *const * | a1, |
const double *const * | a2, | ||
double ** | answer, | ||
long | d1, | ||
long | d2 | ||
) |
Function subtracts two 2D double arrays with dimensions d1xd2. answer = v1 - v2.
Definition at line 634 of file elementaryFunctions.cpp.
Referenced by CleanArray2d().
|
inline |
Function subtracts two vectors of
entries. answer = v1 - v2.
Definition at line 186 of file elementaryFunctions.h.
Referenced by mumech::InclusionRecord2D::compute_eps_tau(), mumech::InclusionRecord2D::compute_initial_eps_tau(), mumech::InclusionRecord2D::compute_strain_pert_from_eps_zero_ext(), mumech::InclusionRecord2D::compute_strain_pert_from_eps_zero_int(), mumech::Inclusion::compute_supplement_energy(), mumech::Inclusion::Eps02EpsTau(), mumech::Problem::give_EshelbyPertFieldsOnePoint(), mumech::Inclusion::give_EshelbyPertStress_internal(), mumech::InclusionRecord3D::SBA_computeInitialStrains(), mumech::Inclusion::transformCoords_G2L(), and mumech::InclusionRecord2D::update_eps_tau().
|
inline |
Function subtracts given number of components vector 'a' from vector 'b'; b -= a.
Definition at line 183 of file elementaryFunctions.h.
Referenced by mumech::Mesh::give_error().
|
inline |
Function sums two vectors of
entries. resVec = vec1 - vec2.
Definition at line 192 of file elementaryFunctions.h.
Referenced by mumech::InclusionRecord3D::addtot().