|
muMECH
1.0
|
#include "problem.h"#include "mesh.h"#include "homogenization.h"#include "comparison.h"#include "types.h"#include "melement.h"#include "vtk.h"#include "tests.h"#include "librw.h"Go to the source code of this file.
Functions | |
| int | x3D_1I_Ellipsoid (void) |
| Single inclusion of type ellipsoid. More... | |
| int | x3D_1I_Ellipsoid_direct_API (void) |
| Single inclusion of type ellipsoid. More... | |
| int | x2D_1I_Ellipse_direct_API (void) |
| Single inclusion of type ellipse. More... | |
| int | plstrain_2I_2d (void) |
| Two inclusions of type ellipse. More... | |
| int | plstrain_2I_3d (void) |
| Two inclusions of type ellipse by 3d. More... | |
| int | grid_2d_3x3_3d (void) |
| Nine 3d inclusions in 2d grid 3x3. More... | |
| int | grid_2d_3x3_3d_F (void) |
| Nine 3d inclusions in 2d grid 3x3. More... | |
| int | Four_3d_inclusions (void) |
| Four 3d inclusion. More... | |
| int | Ellipsoid (void) |
| int | Ellipse (void) |
| int | X2D_3incl (void) |
| int | X3D_3incl (void) |
| int | x2D_1I_Ellipse_homog (void) |
| Single inclusion of type ellipse. More... | |
| int | x3D_1I_Ellipsoid_homog (void) |
| Single inclusion of type ellipse. More... | |
| void | tests_verified (void) |
| int | compare_fields (int n, const double *f1, const double *f2, double eps) |
| Compare two fields. More... | |
| int | diff_fields (int numDisp, int numStrain, int numStress, const double *d1, const double *d2, const double *e1, const double *e2, const double *s1, const double *s2, double eps) |
| int | cmp_vtk_file_delete_first (const char *file1, const char *file2) |
| int | cmp_txt_file_delete_first (const char *file1, const char *file2) |
| int cmp_txt_file_delete_first | ( | const char * | file1, |
| const char * | file2 | ||
| ) |
Definition at line 135 of file tests_verified.cpp.
References gelibspace::file_delete_if_exist_exit(), and gelibspace::FP_cmp_files().
Referenced by x2D_1I_Ellipse_homog(), and x3D_1I_Ellipsoid_homog().
| int cmp_vtk_file_delete_first | ( | const char * | file1, |
| const char * | file2 | ||
| ) |
Definition at line 110 of file tests_verified.cpp.
References mumech::cmp_vtk_file(), and gelibspace::file_delete_if_exist_exit().
Referenced by Ellipsoid(), Four_3d_inclusions(), grid_2d_3x3_3d(), grid_2d_3x3_3d_F(), plstrain_2I_2d(), plstrain_2I_3d(), x2D_1I_Ellipse_direct_API(), X2D_3incl(), x3D_1I_Ellipsoid(), x3D_1I_Ellipsoid_direct_API(), and X3D_3incl().
| int compare_fields | ( | int | n, |
| const double * | f1, | ||
| const double * | f2, | ||
| double | eps | ||
| ) |
| int diff_fields | ( | int | numDisp, |
| int | numStrain, | ||
| int | numStress, | ||
| const double * | d1, | ||
| const double * | d2, | ||
| const double * | e1, | ||
| const double * | e2, | ||
| const double * | s1, | ||
| const double * | s2, | ||
| double | eps | ||
| ) |
Definition at line 97 of file tests_verified.cpp.
References compare_fields().
Referenced by Ellipse(), Ellipsoid(), plstrain_2I_2d(), and plstrain_2I_3d().
| int Ellipse | ( | void | ) |
Definition at line 784 of file tests_verified.cpp.
References _warningg, mumech::Problem::convert_to_equivalent_problem(), diff_fields(), mumech::e(), gelibspace::file_delete_if_exist(), mumech::Problem::giveFieldsOfPointOneRS(), mumech::Problem::input_data_initialize_and_check_consistency(), mumech::PFCM_OPTIMIZED, mumech::Problem::print_equivalent_problem(), mumech::Problem::read_input_file(), mumech::Problem::set_matrix_E_nu(), and mumech::Problem::set_SBA_optimized().
Referenced by tests_verified().
| int Ellipsoid | ( | void | ) |
Definition at line 866 of file tests_verified.cpp.
References _warningg, cmp_vtk_file_delete_first(), mumech::Problem::convert_to_equivalent_problem(), diff_fields(), mumech::DT_ANALITICAL, mumech::e(), mumech::Problem::giveFieldsOfPointOneRS(), mumech::Problem::input_data_initialize_and_check_consistency(), mumech::PFCM_FULL, mumech::Problem::print_equivalent_problem(), mumech::Problem::read_input_file(), mumech::Problem::set_diffType(), mumech::Problem::set_matrix_E_nu(), and mumech::Problem::set_SBA_optimized().
Referenced by tests_verified().
| int Four_3d_inclusions | ( | void | ) |
Four 3d inclusion.
Definition at line 727 of file tests_verified.cpp.
References cmp_vtk_file_delete_first(), mumech::Problem::convert_to_equivalent_problem(), mumech::DT_ANALITICAL, mumech::Problem::input_data_initialize_and_check_consistency(), mumech::PFCM_FULL, mumech::Problem::print_equivalent_problem(), mumech::Problem::print_visualization(), mumech::Problem::printFieldsOnMeshGrid(), mumech::Problem::read_inclusions_plus_initialize_and_print(), mumech::Problem::read_input_file(), mumech::SBAT_ORIGINAL, mumech::Problem::set_diffType(), mumech::Problem::set_intFieldsShape(), and mumech::Problem::set_SBAM().
Referenced by tests_verified().
| int grid_2d_3x3_3d | ( | void | ) |
Nine 3d inclusions in 2d grid 3x3.
Definition at line 351 of file tests_verified.cpp.
References cmp_vtk_file_delete_first(), mumech::Problem::convert_to_equivalent_problem(), mumech::DT_ANALITICAL, mumech::Problem::input_data_initialize_and_check_consistency(), mumech::PFCM_FULL, mumech::Problem::print_equivalent_problem(), mumech::Problem::print_visualization(), mumech::Problem::printFieldsOnMeshGrid(), mumech::SBAT_ORIGINAL, mumech::Problem::set_DataDimDiff(), mumech::Problem::set_inclusion_all(), mumech::Problem::set_intFieldsShape(), mumech::Problem::set_matrix_E_nu(), mumech::Problem::set_number_of_inclusions(), mumech::Problem::set_numberOfRemoteStrains(), mumech::Problem::set_RemoteStrain(), mumech::Problem::set_SBA_optimized(), and mumech::Problem::set_SBAM().
Referenced by tests_verified().
| int grid_2d_3x3_3d_F | ( | void | ) |
Nine 3d inclusions in 2d grid 3x3.
Definition at line 405 of file tests_verified.cpp.
References cmp_vtk_file_delete_first(), mumech::Problem::convert_to_equivalent_problem(), mumech::DT_ANALITICAL, mumech::Problem::input_data_initialize_and_check_consistency(), mumech::PFCM_FULL, mumech::Problem::print_equivalent_problem(), mumech::Problem::printFieldsOnMeshGrid(), mumech::SBAT_ORIGINAL, mumech::Problem::set_DataDimDiff(), mumech::Problem::set_inclusion_all(), mumech::Problem::set_intFieldsShape(), mumech::Problem::set_matrix_E_nu(), mumech::Problem::set_number_of_inclusions(), mumech::Problem::set_numberOfRemoteStrains(), mumech::Problem::set_RemoteStrain(), mumech::Problem::set_SBA_optimized(), and mumech::Problem::set_SBAM().
Referenced by tests_verified().
| int plstrain_2I_2d | ( | void | ) |
Two inclusions of type ellipse.
Definition at line 459 of file tests_verified.cpp.
References _warningg, cmp_vtk_file_delete_first(), mumech::Problem::convert_to_equivalent_problem(), diff_fields(), mumech::DT_NUMERICAL, mumech::e(), mumech::Problem::giveFieldsOfPointOneRS(), mumech::Problem::input_data_initialize_and_check_consistency(), mumech::PFCM_OPTIMIZED, mumech::Problem::print_equivalent_problem(), mumech::Problem::read_input_file(), mumech::Problem::set_data_set(), mumech::Problem::set_diffType(), mumech::Problems::set_dimension(), mumech::Problem::set_inclusion_centroids(), mumech::Problem::set_inclusion_E_nu(), mumech::Problem::set_inclusion_EulerAnglesDEG(), mumech::Problem::set_inclusion_semiaxesDimensions(), mumech::Problem::set_matrix_E_nu(), mumech::Problem::set_number_of_inclusions(), mumech::Problem::set_numberOfRemoteStrains(), mumech::Problem::set_RemoteStrain(), and mumech::Problem::set_SBA_optimized().
Referenced by tests_verified().
| int plstrain_2I_3d | ( | void | ) |
Two inclusions of type ellipse by 3d.
Definition at line 532 of file tests_verified.cpp.
References _warningg, cmp_vtk_file_delete_first(), mumech::Problem::convert_to_equivalent_problem(), diff_fields(), mumech::DT_ANALITICAL, mumech::e(), mumech::Problem::giveFieldsOfPointOneRS(), mumech::Problem::input_data_initialize_and_check_consistency(), mumech::PFCM_OPTIMIZED, mumech::Problem::print_equivalent_problem(), mumech::Problem::read_input_file(), mumech::Problem::set_data_set(), mumech::Problem::set_diffType(), mumech::Problems::set_dimension(), mumech::Problem::set_inclusion_centroids(), mumech::Problem::set_inclusion_E_nu(), mumech::Problem::set_inclusion_EulerAnglesDEG(), mumech::Problem::set_inclusion_semiaxesDimensions(), mumech::Problem::set_matrix_E_nu(), mumech::Problem::set_number_of_inclusions(), mumech::Problem::set_numberOfRemoteStrains(), mumech::Problem::set_RemoteStrain(), and mumech::Problem::set_SBA_optimized().
Referenced by tests_verified().
| void tests_verified | ( | void | ) |
Definition at line 49 of file tests_verified.cpp.
References Ellipse(), Ellipsoid(), Four_3d_inclusions(), grid_2d_3x3_3d(), grid_2d_3x3_3d_F(), plstrain_2I_2d(), plstrain_2I_3d(), x2D_1I_Ellipse_direct_API(), x2D_1I_Ellipse_homog(), X2D_3incl(), x3D_1I_Ellipsoid(), x3D_1I_Ellipsoid_direct_API(), x3D_1I_Ellipsoid_homog(), and X3D_3incl().
Referenced by main().
| int x2D_1I_Ellipse_direct_API | ( | void | ) |
Single inclusion of type ellipse.
Definition at line 165 of file tests_verified.cpp.
References cmp_vtk_file_delete_first(), mumech::Problem::convert_to_equivalent_problem(), mumech::DT_NUMERICAL, mumech::Problem::give_nLC(), mumech::Problem::input_data_initialize_and_check_consistency(), mumech::PFCM_FULL, mumech::Problem::print_visualization(), mumech::Problem::printFieldsOnMeshGrid(), mumech::Problem::set_data_set(), mumech::Problem::set_diffType(), mumech::Problems::set_dimension(), mumech::Problem::set_inclusion_centroids(), mumech::Problem::set_inclusion_E_nu(), mumech::Problem::set_inclusion_EulerAnglesDEG(), mumech::Problem::set_inclusion_semiaxesDimensions(), mumech::Problem::set_matrix_E_nu(), mumech::Problem::set_number_of_inclusions(), mumech::Problem::set_numberOfRemoteStrains(), and mumech::Problem::set_RemoteStrain().
Referenced by tests_verified().
| int x2D_1I_Ellipse_homog | ( | void | ) |
Single inclusion of type ellipse.
Definition at line 604 of file tests_verified.cpp.
References cmp_txt_file_delete_first(), mumech::Problem::convert_to_equivalent_problem(), mumech::DT_NUMERICAL, mumech::Problem::give_inclusion(), mumech::Problem::give_new_homogenization(), mumech::Inclusion::give_StiffnessMatrixFull(), mumech::Homogenization::giveClassName(), mumech::Homogenization::giveHomogenizedStiffnessMatrix(), mumech::Homogenization::giveTotalVolumeFractionOfInclusions(), mumech::HT_Dilute, mumech::HT_MoriTanaka, mumech::HT_RegGrid, mumech::HT_ReussBound, mumech::HT_VoightBound, mumech::Problem::input_data_initialize_and_check_consistency(), mumech::Problem::matrix_giveFullStiffMatrix(), mumech::Homogenization::set_boundingBox(), mumech::Problem::set_DataDimDiff(), mumech::Problem::set_inclusion_all(), mumech::Problem::set_matrix_E_nu(), mumech::Problem::set_number_of_inclusions(), and mumech::Problem::set_UnitRemoteStrains().
Referenced by tests_verified().
| int X2D_3incl | ( | void | ) |
Definition at line 1100 of file tests_verified.cpp.
References cmp_vtk_file_delete_first(), mumech::DT_NUMERICAL, mumech::PFCM_OPTIMIZED, mumech::Problem::printFieldsOnMeshVTK(), mumech::Problem::read_inclusions_plus_initialize_and_print(), mumech::SBAT_ORIGINAL, mumech::Problem::set_intFieldsShape(), and mumech::Problem::set_SBAM().
Referenced by tests_verified().
| int x3D_1I_Ellipsoid | ( | void | ) |
Single inclusion of type ellipsoid.
Definition at line 318 of file tests_verified.cpp.
References cmp_vtk_file_delete_first(), mumech::DT_ANALITICAL, mumech::Problem::give_nLC(), mumech::PFCM_FULL, mumech::Problem::printFieldsOnMeshGrid(), and mumech::Problem::read_inclusions_plus_initialize_and_print().
Referenced by tests_verified().
| int x3D_1I_Ellipsoid_direct_API | ( | void | ) |
Single inclusion of type ellipsoid.
Definition at line 239 of file tests_verified.cpp.
References cmp_vtk_file_delete_first(), mumech::Problem::convert_to_equivalent_problem(), mumech::DT_ANALITICAL, mumech::Problem::give_nLC(), mumech::Problem::input_data_initialize_and_check_consistency(), mumech::PFCM_FULL, mumech::Problem::print_equivalent_problem(), mumech::Problem::printFieldsOnMeshGrid(), mumech::Problem::set_data_set(), mumech::Problem::set_diffType(), mumech::Problems::set_dimension(), mumech::Problem::set_inclusion_centroids(), mumech::Problem::set_inclusion_E_nu(), mumech::Problem::set_inclusion_EulerAnglesDEG(), mumech::Problem::set_inclusion_semiaxesDimensions(), mumech::Problem::set_matrix_E_nu(), mumech::Problem::set_number_of_inclusions(), mumech::Problem::set_numberOfRemoteStrains(), and mumech::Problem::set_RemoteStrain().
Referenced by tests_verified().
| int x3D_1I_Ellipsoid_homog | ( | void | ) |
Single inclusion of type ellipse.
Definition at line 662 of file tests_verified.cpp.
References cmp_txt_file_delete_first(), mumech::Problem::convert_to_equivalent_problem(), mumech::DT_ANALITICAL, mumech::Problem::give_inclusion(), mumech::Problem::give_new_homogenization(), mumech::Inclusion::give_StiffnessMatrixFull(), mumech::Homogenization::giveClassName(), mumech::Homogenization::giveHomogenizedStiffnessMatrix(), mumech::Homogenization::giveTotalVolumeFractionOfInclusions(), mumech::HT_DifferentialScheme, mumech::HT_Dilute, mumech::HT_MoriTanaka, mumech::HT_RegGrid, mumech::HT_ReussBound, mumech::HT_VoightBound, mumech::Problem::input_data_initialize_and_check_consistency(), mumech::Problem::matrix_giveFullStiffMatrix(), mumech::Homogenization::set_boundingBox(), mumech::Problem::set_DataDimDiff(), mumech::Problem::set_inclusion_all(), mumech::Problem::set_matrix_E_nu(), mumech::Problem::set_number_of_inclusions(), and mumech::Problem::set_UnitRemoteStrains().
Referenced by tests_verified().
| int X3D_3incl | ( | void | ) |
Definition at line 1125 of file tests_verified.cpp.
References cmp_vtk_file_delete_first(), mumech::DT_ANALITICAL, mumech::PFCM_OPTIMIZED, mumech::Problem::print_visualization(), mumech::Problem::printFieldsOnMeshVTK(), mumech::Problem::read_inclusions_plus_initialize_and_print(), mumech::SBAT_ORIGINAL, mumech::Problem::set_intFieldsShape(), and mumech::Problem::set_SBAM().
Referenced by tests_verified().