-
Notifications
You must be signed in to change notification settings - Fork 249
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 #2360 from KratosMultiphysics/feature-poro-analysis
Updating Poromechanics analysis and solver to new standard
- Loading branch information
Showing
15 changed files
with
1,114 additions
and
627 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
19 changes: 19 additions & 0 deletions
19
...hanicsApplication/custom_problemtype/Poromechanics_Application.gid/KratosPoromechanics.py
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,19 @@ | ||
from __future__ import print_function, absolute_import, division #makes KratosMultiphysics backward compatible with python 2.6 and 2.7 | ||
|
||
import KratosMultiphysics | ||
import KratosMultiphysics.ExternalSolversApplication | ||
# import KratosMultiphysics.TrilinosApplication as TrilinosApplication | ||
import KratosMultiphysics.FluidDynamicsApplication | ||
import KratosMultiphysics.SolidMechanicsApplication | ||
import KratosMultiphysics.PoromechanicsApplication | ||
|
||
from poromechanics_analysis import PoromechanicsAnalysis | ||
|
||
if __name__ == "__main__": | ||
|
||
with open("ProjectParameters.json",'r') as parameter_file: | ||
parameters = KratosMultiphysics.Parameters(parameter_file.read()) | ||
|
||
model = KratosMultiphysics.Model() | ||
simulation = PoromechanicsAnalysis(model,parameters) | ||
simulation.Run() |
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
Oops, something went wrong.