-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorganize material models with Eigen (#318)
* Consolidate get_pk2cc and get_pk2cc_dev(). Use only mat_models.cpp * Update material unit tests * Add voigt_to_cc, fix undefined Ja bug, fix no pressure in HO-ma bug, update HO-ma reference solutions, remove mat_models_carray.h includes * Fix Ja calculation bug leading to ustruct failures, remove get_pk2cc_dev * Fix indexing bug for struct viscosity tangent terms * Remove mat_models_carray.h and commented code * trying out eigen conversion * Change from Matrix to Tensor * Adding/moving templated Eigen matrix/tensor function implementations to header; using fixed size Matrix and Tensors, instead of just Tensors. Compiles and passes integration tests/unit tests that use NeoHookean * Update eigen includes path * Consolidate volumetric stress and elasticity contributions * General function used by multiple models to project S_bar and CC_bar to S_iso and CC_iso; Add several required tensor operations for Eigen Matrices/Tensors * Bug fixes. 1) For some reason, code runs but is incorrect when using auto instead of EigenTensor<nsd> for PP. 2) fix typo for ten_symm_prod_eigen() * Replace some mat_fun loops with built in Eigen operations * Add Eigen implementation for Mooney-Rivlin model * Adding Linear, StVK, and modified StVK. Compared to original implementation, only modifying to use Eigen tensor functions. * Add HGO model. Passes ustruct/tensile_adventitia_HGO * Add Guccione model Eigen implementation. Passes Guccione tests * Add Holzapfel-Ogden model. Passes HO tests * Add HO-ma model. Passes all struct/ustruct tests * Replacing auto with EigenMatrix<nsd>, since using auto is not recommended for Eigen * Replacing Eigen operations with for loops for some tensor functions, faster for some reason * Update .gitignore genBC files to reflect renaming of svFSIplus to svMultiPhysics * Add -march=native flag to CMAKE_C_FLAGS and CMAKE_CXX_FLAGS for optimization * Update CMakeLists.txt to clarify -march=native flag usage for Eigen performance * Remove temporary mat_models_Dave_array.cpp * Removing mat_fun_carray.h/cpp. Restructuring material unit tests to use Arrays instead of C-arrays. * Comment out -march=native flag in CMakeLists.txt for C and C++ compiler flags to try to fix Ubuntu timeout issue * Cleaning up and renaming to address @ktbolt and @mrp089 comments * Replace dyadic_product and symmetric_dyadic_product with algebraic expressions. Avoid overloaded function and improve readability * Addressing @ktbolt and @mrp089 comments round 2. Rename EigenMatrix and EigenTensor aliases to Matrix and Tensor. Consolidate double_dot_product functions for tensors. Rename get_() functions to compute_(). Fix throw runtime_error bug for invalid material models. --------- Co-authored-by: Marisa Bazzi <[email protected]>
- Loading branch information
1 parent
6ecb75f
commit 675b02b
Showing
18 changed files
with
1,642 additions
and
4,137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.