-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2259 from chleh/mfront2
Use Solid Material Models from MFront
- Loading branch information
Showing
52 changed files
with
3,859 additions
and
6 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
18 changes: 18 additions & 0 deletions
18
Documentation/ProjectFile/material/solid/constitutive_relation/MFront/c_MFront.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Loads a material model from a shared library that has been created by MFront | ||
with MFront's generic interface. | ||
|
||
See http://tfel.sourceforge.net/ https://github.com/thelfer/MFrontGenericInterfaceSupport | ||
|
||
This requires MFront 3.2.0 or newer (because of MFront's "generic" interface). | ||
|
||
\attention | ||
OpenGeoSys initializes the internal state of the MFront material model to | ||
all-zero. Furthermore, the very first iteration of OpenGeoSys is performed | ||
already at the first load step, i.e., OpenGeoSys does not perform a stress | ||
integration with the IC values. That differs, e.g., from the mtest executable | ||
shipped with MFront, which, initially does a stress integration with the ICs | ||
values. If your model needs such a stress integration step, you must make sure | ||
that you prepend an initial, artificial load step. If you observe convergence | ||
issues during the local stress integration in the very first iteration of | ||
OpenGeoSys, you should consider adding such a load step, in particular if mtest | ||
succeeds to integrate the same load path. |
4 changes: 4 additions & 0 deletions
4
...solid/constitutive_relation/MFront/material_properties/i_material_properties.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Specifies material properties for the MFront material model. | ||
|
||
Each material property defined for the MFront model must be specified here, | ||
no default values are used. |
1 change: 1 addition & 0 deletions
1
...id/constitutive_relation/MFront/material_properties/material_property/a_name.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
The name of the material property in MFront. |
2 changes: 2 additions & 0 deletions
2
...nstitutive_relation/MFront/material_properties/material_property/a_parameter.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
The name of the OGS parameter whose values will be used for this material | ||
property. |
1 change: 1 addition & 0 deletions
1
...ve_relation/MFront/material_properties/material_property/i_material_property.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Sets up one material property. |
1 change: 1 addition & 0 deletions
1
...entation/ProjectFile/material/solid/constitutive_relation/MFront/t_behaviour.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Name of the behaviour to load. |
3 changes: 3 additions & 0 deletions
3
Documentation/ProjectFile/material/solid/constitutive_relation/MFront/t_library.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Path of the shared library containing the material model. | ||
|
||
Relative paths are interpreted relative to the project directory. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
set(SOURCES CreateMFront.cpp CreateMFront.h) | ||
|
||
if(OGS_USE_MFRONT) | ||
list(APPEND SOURCES MFront.cpp MFront.h) | ||
endif() | ||
|
||
add_library(MaterialLib_SolidModels_MFront ${SOURCES}) | ||
|
||
if(BUILD_SHARED_LIBS) | ||
install(TARGETS MaterialLib_SolidModels_MFront LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) | ||
endif() | ||
|
||
target_link_libraries(MaterialLib_SolidModels_MFront | ||
PUBLIC BaseLib NumLib logog | ||
PRIVATE MathLib MeshLib | ||
) | ||
|
||
if (OGS_USE_MFRONT) | ||
target_include_directories(MaterialLib_SolidModels_MFront | ||
PUBLIC ${MGIS_INCLUDE_DIR} | ||
) | ||
target_link_libraries(MaterialLib_SolidModels_MFront | ||
PUBLIC ${MGIS_LIBRARY} | ||
) | ||
target_compile_definitions(MaterialLib_SolidModels_MFront PRIVATE OGS_USE_MFRONT) | ||
endif() |
Oops, something went wrong.