MoDeNa
1.0
Software framework facilitating sequential multi-scale modelling
|
Calculate difference table for the moments realizability check. More...
Go to the source code of this file.
Functions | |
void | enterMoments (double *mom, const int nNodes) |
input the moments More... | |
void | enterWeightsNodes (double *we, double *vi, int nNodes) |
inputs weights and nodes of quadrature More... | |
void | weightsNodesToMoms (double *mom, double *we, double *vi, int nNodes) |
converts weights and nodes to moments More... | |
void | printMoms (const double *m, int nNodes) |
prints moments More... | |
bool | momentsPositivite (const double *moments, int &nNodes) |
void | normalizeMom (double *m, int nNodes) |
normalizes the moments More... | |
void | denormalizeMom (double *m, double M0, int nNodes) |
de-normalizes the moments More... | |
void | initializeDifferenceTable (double **differenceTable, int nNodes) |
initializes the difference table More... | |
void | printDifferenceTable (double **differenceTable, int nNodes) |
prints the difference table More... | |
void | buildDifferenceTable (double **differenceTable, double *mom, int nNodes) |
constructs the difference table More... | |
int | isRealizable (double **differenceTable, int nNodes) |
checks if the moments are realizable More... | |
double | vectorNorm (vector< double > const &v) |
normalized vector used in McGraw correction algorithm More... | |
Calculate difference table for the moments realizability check.
Definition in file differenceTable.h.
void buildDifferenceTable | ( | double ** | differenceTable, |
double * | mom, | ||
int | nNodes | ||
) |
constructs the difference table
differenceTable | pointer to difference table |
mom | moments of different orders |
nNodes | number of nodes |
Definition at line 183 of file differenceTable.h.
void denormalizeMom | ( | double * | m, |
double | M0, | ||
int | nNodes | ||
) |
de-normalizes the moments
m | moments of different orders |
M0 | moment of order zero based on unit volume of the foam |
nNodes | number of nodes |
Definition at line 147 of file differenceTable.h.
void enterMoments | ( | double * | mom, |
const int | nNodes | ||
) |
input the moments
mom | moments of different orders |
nNodes | number of nodes |
Definition at line 82 of file differenceTable.h.
void enterWeightsNodes | ( | double * | we, |
double * | vi, | ||
int | nNodes | ||
) |
inputs weights and nodes of quadrature
we | weights of quadrature |
vi | nodes of quadrature |
nNodes | number of nodes |
Definition at line 90 of file differenceTable.h.
void initializeDifferenceTable | ( | double ** | differenceTable, |
int | nNodes | ||
) |
initializes the difference table
differenceTable | pointer to difference table |
nNodes | number of nodes |
Definition at line 155 of file differenceTable.h.
int isRealizable | ( | double ** | differenceTable, |
int | nNodes | ||
) |
checks if the moments are realizable
differenceTable | pointer to the difference table |
nNodes | number of nodes |
Definition at line 198 of file differenceTable.h.
bool momentsPositivite | ( | const double * | moments, |
int & | nNodes | ||
) |
moments | moments of different orders |
nNodes | number of nodes |
Definition at line 124 of file differenceTable.h.
void normalizeMom | ( | double * | m, |
int | nNodes | ||
) |
normalizes the moments
m | moments of different orders |
nNodes | number of nodes |
Definition at line 139 of file differenceTable.h.
void printDifferenceTable | ( | double ** | differenceTable, |
int | nNodes | ||
) |
prints the difference table
differenceTable | pointer to difference table |
nNodes | number of nodes |
Definition at line 166 of file differenceTable.h.
void printMoms | ( | const double * | m, |
int | nNodes | ||
) |
prints moments
m | moments of different orders |
nNodes | number of nodes |
Definition at line 116 of file differenceTable.h.
double vectorNorm | ( | vector< double > const & | v | ) |
normalized vector used in McGraw correction algorithm
v | input vector |
Definition at line 212 of file differenceTable.h.
void weightsNodesToMoms | ( | double * | mom, |
double * | we, | ||
double * | vi, | ||
int | nNodes | ||
) |
converts weights and nodes to moments
mom | moments of different orders |
we | weights of quadrature |
vi | nodes of quadrature |
nNodes | number of nodes |
Definition at line 99 of file differenceTable.h.