-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hyperelastic RMT code with updated modular precision #767
Open
mrodrig6
wants to merge
603
commits into
MFlowCode:master
Choose a base branch
from
ComputationalFlowGroup:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+2,109
−575
Open
Changes from all commits
Commits
Show all changes
603 commits
Select commit
Hold shift + click to select a range
07563ac
added additional changes in preparation for merger
mrodrig6 a1dc73b
Merge branch 'hyperelasticity' of https://github.com/ComputationalFlo…
mrodrig6 8f8655b
made necessary changes to streamline code, compiles on CPUs, not tested
mrodrig6 5b04d7d
cleaned up code in conservative to primitive variables, more changes …
mrodrig6 bfb2752
test suite passes on CPUs, testing GPUs
mrodrig6 ebb1d2e
refactoring hyperelasticity mostly complete, not yet testing, compile…
mrodrig6 c7ffbd1
code compiles and passes test suite on Delta GPUs
mrodrig6 0ad7688
reworked \tau evaluation in the common code for hyperelasticity, comp…
mrodrig6 62b7f56
debugged pre and post-process on CPUs, testing on GPUs
mrodrig6 04564ec
debugged pre and post_process, now investigating btensor calc and cau…
mrodrig6 f001949
debugged issue for the cauchy tensor update
mrodrig6 81a3ae7
last check of the code, before moving xi calcs to simulation and out …
mrodrig6 b1556d8
hypoelasticity can now do grid stretching, building up hyper to do th…
mrodrig6 2f30499
improved hypo for acc and fixed shear modulus limit
mrodrig6 7491445
data issue, checking on Oscar
mrodrig6 b9c0102
fixed the ACC commands for grid stretching of hypo
mrodrig6 d223e41
merging RMT code into hyperelastic module in simulation, not yet done…
mrodrig6 c4779cb
upgraded RMT hyperelastic code, need to integrate to m_rhs
mrodrig6 c921cdd
debugged hyper for grid stretching, improved ACC looping for hypo
mrodrig6 481702e
hypo passes test suite on Delta GPU, phase change tolerance could be …
mrodrig6 9933f80
fixed hyperelastic stress update call, one more hyper bug remains
mrodrig6 8476ff5
additional modifications for RMT
mrodrig6 a2fd00f
code compiles, passes test suite, hyperelastic RMT runs
mrodrig6 124bd73
oscar commit
mrodrig6 1a9426c
merged conflicts
mrodrig6 e53b728
fixed incorrect flux calculation of the xi_field in the Riemann solve…
mrodrig6 8382a70
additional clean up for the RMT code
mrodrig6 91b6a66
added symmetry boundary conditions for the \xi field, other boundary …
mrodrig6 e6e2c6a
corrected stress values
mrodrig6 f248fe0
Merge branch 'MFlowCode:master' into source
mrodrig6 9aa316e
hard coded the boundaries for RMT, need to fix with for cbc in RMT
mrodrig6 9cb3a52
improved the abstract interface for hyperelastict
mrodrig6 cdf9923
fixed private variables in HLLC Riemann solver for xi_field_L/R
mrodrig6 6eca956
additional fixes to hyperelastic, compiles, passes test suites, testi…
mrodrig6 f607c5f
night before rehearsal at CTR, code testing
mrodrig6 8c9e058
last submit used at CTR summer program
mrodrig6 bd1427c
Merge branch 'MFlowCode:master' into source
mrodrig6 5a91fbd
merged with source
mrodrig6 779e3d4
Merge branch 'hyperelasticity'
mrodrig6 a1bfdea
merged with source
mrodrig6 24c2566
reverted phase change tolerances
mrodrig6 bab53da
Merge branch 'master' of https://github.com/ComputationalFlowGroup/MFC
mrodrig6 33d820d
added hyper_model capability
mrodrig6 6cd9f73
Merge branch 'master' of https://github.com/ComputationalFlowGroup/MFC
mrodrig6 5aac868
Merge branch 'MFlowCode:master' into source
mrodrig6 c79f291
Merge branch 'MFlowCode:master' into source
mrodrig6 fa63b57
merged with source
mrodrig6 2246408
commiting changes in 2d hardcoded ic
c614634
resolved
ceb5bb9
Merge branch 'MFlowCode:master' into source
mrodrig6 80f462f
Merge branch 'source'
mrodrig6 7445aab
2D capability for interface outputting
sawyer-rem e55983e
Merge branch 'master' of https://github.com/ComputationalFlowGroup/MFC
0186c5f
added checkers for current elasticity capabilities, have not addresse…
mcarcana 0c41214
Merge branch 'MFlowCode:master' into source
mcarcana bc999b5
updating 5-eq hllc riemann, not yet done
mrodrig6 2a45410
Merge branch 'MFlowCode:master' into source
mrodrig6 7c16cc2
Merge branch 'master' of https://github.com/ComputationalFlowGroup/MFC
efe8914
updated 3Dhardcodedic to include the lung problem geometry
60a6046
Merge branch 'MFlowCode:master' into source
mrodrig6 17d20e2
beginning the debugging of the master branch
mrodrig6 f93b981
Merge branch 'master' of https://github.com/ComputationalFlowGroup/MFC
mrodrig6 570639a
1D and 2D passes suite, 3D fails
mrodrig6 4b02bd7
removing diff.txt file
mrodrig6 2c9bd2c
small changes, still not passing 3D
mrodrig6 d287461
removed diff.txt
mrodrig6 0d9e4e7
attempting to fix hllc for 3D
mrodrig6 378f7f2
working code, cleaning up the code
mrodrig6 2445604
code passes test suite, hyper should be checked
mrodrig6 f37d3ed
5-eq HLLC with hyperelasticity, passes test suite on Delta
mrodrig6 fd537f9
add examples cases from CTR to the examples folder
mrodrig6 a8cbfff
a few modifications to 3D hyperelasticity module
mrodrig6 ae75475
removed 3D_CAV simulation
mrodrig6 64424f1
3d lung case file added
f7c18f9
Merge branch 'master' of https://github.com/ComputationalFlowGroup/MFC
38540b6
Adding 3d_bubble_channel
684f4b3
Adding 3d_bubble_channel example
31520ec
adding 3D_bubble_channel
2a4388a
resolved a few issues for the lung wave problem
mrodrig6 f1717b5
Merge branch 'master' of https://github.com/ComputationalFlowGroup/MFC
mrodrig6 02adf9e
added some files
mrodrig6 40ff12b
testing bubble in channel
mrodrig6 7113d29
improving hyperelasticity
mrodrig6 2bdd25a
small changes to the submit scripts
mrodrig6 a0f6eae
Merge branch 'MFlowCode:master' into source
mrodrig6 a76202a
Merge branch 'MFlowCode:master' into source
mrodrig6 10424f4
Merge branch 'source'
mrodrig6 2e969a2
a few additional changes
mrodrig6 5472a04
Merge branch 'master' of https://github.com/ComputationalFlowGroup/MFC
mrodrig6 17d5541
updated the m_variables_conversion
mrodrig6 1dcd10d
Merge branch 'MFlowCode:master' into source
mrodrig6 69de443
Merge branch 'source'
mrodrig6 9898d6b
Merge branch 'MFlowCode:master' into source
mrodrig6 265b4d1
Merge branch 'MFlowCode:master' into source
mrodrig6 9e57b4e
merged changes
mrodrig6 3f2659d
Merge branch 'MFlowCode:master' into source
mrodrig6 0b58a52
metaprogramming to hyperelastic
mrodrig6 bd406db
added a few more metaprogramming
mrodrig6 bfd14bf
Merge branch 'MFlowCode:master' into source
mrodrig6 c61f36f
Merge branch 'MFlowCode:master' into source
mrodrig6 be6e91e
Merge branch 'MFlowCode:master' into source
mrodrig6 e51bde2
Merge branch 'MFlowCode:master' into source
mrodrig6 6f200c0
Merge branch 'MFlowCode:master' into source
mrodrig6 4ceaefb
Merge branch 'MFlowCode:master' into source
mrodrig6 6d60ecd
merged with source, need to update module load for Delta
mrodrig6 3d84962
updated the Delta modules
mrodrig6 a8eeab0
added modules to Delta
mrodrig6 3683854
Merge branch 'source'
mrodrig6 fd01d5f
Merge branch 'MFlowCode:master' into source
mrodrig6 181db14
Merge branch 'MFlowCode:master' into source
mrodrig6 1e424e0
update the library in the mako file
mrodrig6 e230cd0
Merge branch 'MFlowCode:master' into source
mrodrig6 972a58a
Merge branch 'source' of https://github.com/ComputationalFlowGroup/MF…
mrodrig6 e101761
merged with source and updated mako file
mrodrig6 60f9226
updated input file in the lung problem, updated 3dhardcodedIC
6ab5f91
Update case.py
nkoval2003 db99be8
added 2 print statements in the m_hyper
17e8a19
Update case.py
nkoval2003 d122b2e
adding small fixes to the code to improve the lung problem for APS DFD
mrodrig6 eb799b7
adding the zero gradient boundary conditions
mrodrig6 03f320e
Merge branch 'MFlowCode:master' into source_new
mrodrig6 479de27
code compiles after merger with source, needs to be tested
mrodrig6 c9c3ee1
removing old speed of sound, there may older code that also needs to …
mrodrig6 e853852
passes the test suite on Delta
mrodrig6 6339c43
Merge branch 'MFlowCode:master' into source
mrodrig6 7afc810
merged latest changes
mrodrig6 d9d5214
merged with master and source
mrodrig6 5da51af
still working on lung simulation
mrodrig6 9f019aa
Merge branch 'MFlowCode:master' into source
mrodrig6 86ae789
merged again with source
mrodrig6 bd14da3
Merge branch 'master' into lung
mrodrig6 53a0205
Merge branch 'MFlowCode:master' into source
mrodrig6 7570818
populate primitive variable buffer after hyperelasticity for stress i…
mcarcana a251fa2
adding von Mises stress routine + post_process to output
mcarcana 939c639
von Mises compiles + fix of populate variable buffer in rhs for hyper…
mcarcana ef85e33
adding pre_stress hardcode patch
mcarcana 24d1ff1
merged with master
mrodrig6 7312231
outline for kymograph: step 1 - kymograph flag added in post_process
mcarcana 5e77aa2
Merge branch 'MFlowCode:master' into source
mrodrig6 432f915
step 2 - kymo_data_file outline
mcarcana 1e2073c
merged conflicts
mrodrig6 0c9f354
code not compiling
mrodrig6 2bcee9e
fixed issues with von Mises calculation
mrodrig6 bc102c8
incremental step 2
mcarcana 0047941
resolved namelist issue in post_process
mrodrig6 dc993e1
operational code for APS DFD 2024
mrodrig6 482149e
added the merger
mrodrig6 2bc57fb
debugged post_process
mrodrig6 a8abfed
step 3: extracting vonMises stress for selected 1D line in domain
mcarcana 1a369de
one approach to saving d, h_1, h_2 von Mises stress
mcarcana 1e3bd31
alternative to saving d, h_1, h_2 von Mises stress
mcarcana f2a9e0f
kymograph tentatively done, compiles, need to test next
mcarcana 11860a6
issues in vonMises addressed
mcarcana efa9ca4
adjustments to vonMises
mcarcana e8d2b18
merging conflicts
mcarcana 5b3fde7
kymograph in case_dicts
mcarcana 40b456a
it runs but does it work?
mcarcana 55d9ba9
added sbatch command to improve performance on Delta
mrodrig6 143f710
Merge branch 'MFlowCode:master' into source
mrodrig6 ed86832
initial larger merger with source, can not yet run the test suite, to…
mrodrig6 29c132e
Merge branch 'MFlowCode:master' into source
mrodrig6 ab4d388
merged with the source code, passed most of the test suite
mrodrig6 2da2257
Merge branch 'MFlowCode:master' into source
mrodrig6 4de6503
Merge branch 'source'
mrodrig6 1fafb74
updated a few files to conform to the modular precision
mrodrig6 fc3b249
added more module precision
mrodrig6 25bf4fe
cleaning up the master branch in preparation for PR
mrodrig6 ab772fd
ran the MFC format command for PR
mrodrig6 87430b6
resolved several comments
mrodrig6 5d28efd
fixed the lint issues
mrodrig6 c9ec48d
Merge branch 'master' into master
sbryngelson 8bcf768
Discard changes to examples/2D_lungwave/case.py
sbryngelson 4dacbea
Delete toolchain/bootstrap/docker.sh
sbryngelson f54f964
Discard changes to examples/2D_lungwave_horizontal/case.py
sbryngelson d5c4b74
Update modules
sbryngelson 3ce911a
Discard changes to toolchain/modules
sbryngelson 1839770
made elasticity the logical for hypo and hyper
mrodrig6 3c608c2
refined the checker common for the elasticity models
mrodrig6 8e92fe5
added elasticity as a mandatory flag to be added to the input file wh…
mrodrig6 5972e12
fix ups
sbryngelson 509806c
one broken example for CI, one removed one
sbryngelson 2a3e593
another bokren case!
sbryngelson 27c4f96
Merge branch 'master' into master
sbryngelson 49f2dcc
Merge branch 'master' of https://github.com/ComputationalFlowGroup/MFC
mrodrig6 a4feb61
RMT now with HLL, need to build test cases
mrodrig6 c227fbf
additional clean up for interface energy data
mrodrig6 a3fb923
added kymograph to post_processing
mrodrig6 f27b0df
Merge branch 'master' of https://github.com/ComputationalFlowGroup/MFC
mrodrig6 e080104
clean up of the code
mrodrig6 5f3adcb
fixing wp issues
mrodrig6 a3bffbd
added examples to be made tests after verifying
mrodrig6 1db6a0d
Merge branch 'master' into master
sbryngelson 69a6015
added variables to mpi_proxy
mrodrig6 52d58d6
merged conflicts
mrodrig6 c7f4484
added boundary condition checker for hyperelasticity
mrodrig6 d3479b1
reverted the elasticity flag
mrodrig6 b7d6bdb
formatted code again
mrodrig6 c465891
fixed example files
mrodrig6 d5da639
Merge branch 'master' into master
sbryngelson 3009d3a
small changes to the example cases
mrodrig6 bac9470
additional broken test cases
mrodrig6 59f1c23
cleaned up the post_process for hyperelastic output
mrodrig6 723626f
Merge branch 'master' into master
sbryngelson 2a258da
manual merge
sbryngelson 9402b8c
cleaning cases
sbryngelson 8f4c7f5
fix lint
sbryngelson 3fdb693
Merge branch 'master' into master
sbryngelson 4198795
Merge branch 'master' into master
sbryngelson 344d3ac
Merge branch 'master' into master
sbryngelson 5cc2f1f
Merge branch 'master' into master
sbryngelson 70fa27c
clean examples
sbryngelson b0abe04
Merge branch 'MFlowCode:master' into master
mrodrig6 9c84117
Merge branch 'MFlowCode:master' into master
mrodrig6 b7bf6e5
Merge branch 'MFlowCode:master' into master
mrodrig6 c59fc0f
cleanup
sbryngelson 9afde7d
clean
sbryngelson 62f436f
update (#1)
sbryngelson 619e9f1
Hyper edits (#2)
ChrisZYJ 4a63dc2
Fix tau_wrt test bug (#3)
ChrisZYJ 517ecb5
fix hyper_model & examples
ChrisZYJ f964392
fix hyper_model & examples (#4)
ChrisZYJ b5f5301
corrected the Oscar mako file
mrodrig6 7dd3269
Merge branch 'master' of https://github.com/ComputationalFlowGroup/MFC
mrodrig6 db78f42
change fd_order checker (#5)
ChrisZYJ 7922dcc
basic 1D/2D hyperelasticity scheme added
mcarcana 0834716
removed print statements in 2d hyper
mcarcana 32141de
removed print statements from m_hyperelastic part 2
mcarcana 52ba7d5
corrected double precision intrinsics in m_hyper
mcarcana aa9a007
corrected double precision intrinsics in m_hyper part 2
mcarcana 20d84ec
actually corrected double precision intrinsics in m_hyper part 3
mcarcana 8574011
Merge branch 'master' into 1d2dhyper
mcarcana 11754c6
Merge branch 'MFlowCode:master' into master
mrodrig6 b8d3c3d
Merge branch 'MFlowCode:master' into master
mrodrig6 b6c2863
Merge branch 'MFlowCode:master' into master
mrodrig6 9bcf5e2
resolving conflicts in m_hyperelastic
mcarcana be859c5
returning an accidental deletion from conflict resolution
mcarcana 40187df
Merge branch 'master' into 1d2dhyper
mrodrig6 0dca297
further cleaning to the code
mrodrig6 44eb445
1d/2d hyper (#6)
mrodrig6 e4bdb5e
small adjustments to riemann for the 6-equation model
mrodrig6 624c36d
cleaned up the wp in riemann_solver
mrodrig6 7134cc0
wp in variables_conversion
mrodrig6 719a164
formatted the code
mrodrig6 1bc7a1d
formatted wp in riemann solver
mrodrig6 0313afa
Merge branch 'master' of https://github.com/ComputationalFlowGroup/MFC
mrodrig6 cd0f1e1
Merge branch 'MFlowCode:master' into master
mrodrig6 0ab04a0
Merge branch 'MFlowCode:master' into master
mrodrig6 cf4eaaf
Merge branch 'MFlowCode:master' into master
mrodrig6 75a45ce
Merge branch 'MFlowCode:master' into master
mrodrig6 ffca1d4
Merge branch 'MFlowCode:master' into master
mrodrig6 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
#!/usr/bin/env python3 | ||
import math | ||
import json | ||
|
||
# Numerical setup | ||
Nx = 201 | ||
dx = 1.0 / (1.0 * (Nx + 1)) | ||
|
||
Tend = 41e-06 | ||
Nt = 4000 | ||
mydt = Tend / (1.0 * Nt) | ||
|
||
# Configuring case dictionary | ||
print( | ||
json.dumps( | ||
{ | ||
# Logistics | ||
"run_time_info": "T", | ||
# Computational Domain Parameters | ||
"x_domain%beg": 0.0e00, | ||
"x_domain%end": 1.0e00, | ||
# 'y_domain%beg' : 0.E+00, | ||
# 'y_domain%end' : 0.002, | ||
"m": Nx, | ||
"n": 0, | ||
"p": 0, | ||
"dt": mydt, | ||
"t_step_start": 0, | ||
"t_step_stop": int(Nt), | ||
"t_step_save": int(Nt / 200), | ||
# Simulation Algorithm Parameters | ||
"num_patches": 2, | ||
"model_eqns": 2, | ||
"alt_soundspeed": "F", | ||
"num_fluids": 1, | ||
"mpp_lim": "F", | ||
"mixture_err": "F", | ||
"time_stepper": 3, | ||
"weno_order": 5, | ||
"weno_eps": 1.0e-16, | ||
"weno_Re_flux": "F", | ||
"weno_avg": "F", | ||
"mapped_weno": "F", | ||
"null_weights": "F", | ||
"mp_weno": "T", | ||
"riemann_solver": 2, | ||
"wave_speeds": 1, | ||
"avg_state": 2, | ||
"bc_x%beg": -3, | ||
"bc_x%end": -3, | ||
#'bc_y%beg' : -3, | ||
#'bc_y%end' : -3, | ||
# Turning on Hypoelasticity | ||
"hyperelasticity": "T", | ||
"hyper_model": 1, | ||
"fd_order": 4, | ||
# Formatted Database Files Structure Parameters | ||
"format": 1, | ||
"precision": 2, | ||
"prim_vars_wrt": "T", | ||
"parallel_io": "F", | ||
# Patch 1 L | ||
"patch_icpp(1)%geometry": 1, | ||
"patch_icpp(1)%x_centroid": 0.25, | ||
# 'patch_icpp(1)%y_centroid' : 0.001, | ||
"patch_icpp(1)%length_x": 0.5, | ||
# 'patch_icpp(1)%length_y' : 0.002, | ||
"patch_icpp(1)%vel(1)": 1000, | ||
# 'patch_icpp(1)%vel(2)' : 100*0, | ||
"patch_icpp(1)%pres": 1.0e5, | ||
"patch_icpp(1)%alpha_rho(1)": 1000, | ||
"patch_icpp(1)%alpha(1)": 1.0, | ||
"patch_icpp(1)%tau_e(1)": 0.0, | ||
# Patch 2 R | ||
"patch_icpp(2)%geometry": 1, | ||
"patch_icpp(2)%x_centroid": 0.75, | ||
# 'patch_icpp(2)%y_centroid' : 0.001, | ||
"patch_icpp(2)%length_x": 0.5, | ||
# 'patch_icpp(2)%length_y' : 0.002, | ||
"patch_icpp(2)%vel(1)": 1000, | ||
# 'patch_icpp(2)%vel(2)' : -100*0, | ||
"patch_icpp(2)%pres": 1.0e05, | ||
"patch_icpp(2)%alpha_rho(1)": 1000, | ||
"patch_icpp(2)%alpha(1)": 1.0, | ||
"patch_icpp(2)%tau_e(1)": 0.0, | ||
# Fluids Physical Parameters | ||
"fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00), | ||
"fluid_pp(1)%pi_inf": 4.4e00 * 6.0e08 / (4.4e00 - 1.0e00), | ||
"fluid_pp(1)%G": 1e010, | ||
} | ||
) | ||
) |
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,82 @@ | ||
#!/usr/bin/env python3 | ||
import math | ||
import json | ||
|
||
# Numerical setup | ||
Nx = 201 | ||
dx = 1.0 / (1.0 * (Nx + 1)) | ||
|
||
Tend = 64e-06 | ||
Nt = 4000 | ||
mydt = Tend / (1.0e00 * Nt) | ||
# print(mydt) | ||
# Configuring case dictionary | ||
print( | ||
json.dumps( | ||
{ | ||
# Logistics | ||
"run_time_info": "T", | ||
# Computational Domain Parameters | ||
"x_domain%beg": 0.0e00, | ||
"x_domain%end": 1.0e00, | ||
"m": Nx, | ||
"n": 0, | ||
"p": 0, | ||
"dt": mydt, | ||
"t_step_start": 0, | ||
"t_step_stop": int(Nt), | ||
"t_step_save": int(Nt / 200), | ||
# Simulation Algorithm Parameters | ||
"num_patches": 2, | ||
"model_eqns": 3, | ||
"alt_soundspeed": "F", | ||
"num_fluids": 1, | ||
"mpp_lim": "F", | ||
"mixture_err": "F", | ||
"time_stepper": 3, | ||
"weno_order": 5, | ||
"weno_eps": 1.0e-16, | ||
"weno_Re_flux": "F", | ||
"weno_avg": "F", | ||
"mapped_weno": "F", | ||
"null_weights": "F", | ||
"mp_weno": "T", | ||
"riemann_solver": 2, | ||
"wave_speeds": 1, | ||
"avg_state": 2, | ||
"bc_x%beg": -3, | ||
"bc_x%end": -3, | ||
# Turning on Hyperelasticity | ||
"hyperelasticity": "T", | ||
"hyper_model": 1, | ||
"fd_order": 4, | ||
# Formatted Database Files Structure Parameters | ||
"format": 1, | ||
"precision": 2, | ||
"prim_vars_wrt": "T", | ||
"parallel_io": "F", | ||
# Patch 1 L | ||
"patch_icpp(1)%geometry": 1, | ||
"patch_icpp(1)%x_centroid": 0.25, | ||
"patch_icpp(1)%length_x": 0.5, | ||
"patch_icpp(1)%vel(1)": 10, | ||
"patch_icpp(1)%pres": 1.0e5, | ||
"patch_icpp(1)%alpha_rho(1)": 1000, | ||
"patch_icpp(1)%alpha(1)": 1.0, | ||
"patch_icpp(1)%tau_e(1)": 0.0, | ||
# Patch 2 R | ||
"patch_icpp(2)%geometry": 1, | ||
"patch_icpp(2)%x_centroid": 0.75, | ||
"patch_icpp(2)%length_x": 0.5, | ||
"patch_icpp(2)%vel(1)": -10, # 10, | ||
"patch_icpp(2)%pres": 1.0e05, | ||
"patch_icpp(2)%alpha_rho(1)": 1000, | ||
"patch_icpp(2)%alpha(1)": 1.0, | ||
"patch_icpp(2)%tau_e(1)": 0.0, | ||
# Fluids Physical Parameters | ||
"fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00), | ||
"fluid_pp(1)%pi_inf": 4.4e00 * 6.0e08 / (4.4e00 - 1.0e00), | ||
"fluid_pp(1)%G": 1.0e00, # .E+010, | ||
} | ||
) | ||
) |
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,90 @@ | ||
#!/usr/bin/env python3 | ||
import math | ||
import json | ||
|
||
# Numerical setup | ||
Nx = 201 | ||
dx = 1.0 / (1.0 * (Nx + 1)) | ||
|
||
Tend = 64e-06 | ||
Nt = 4000 | ||
mydt = Tend / (1.0e00 * Nt) | ||
# print(mydt) | ||
# Configuring case dictionary | ||
print( | ||
json.dumps( | ||
{ | ||
# Logistics | ||
"run_time_info": "T", | ||
# Computational Domain Parameters | ||
"x_domain%beg": 0.0e00, | ||
"x_domain%end": 1.0e00, | ||
# 'y_domain%beg' : 0.E+00, | ||
# 'y_domain%end' : 0.002, | ||
"m": Nx, | ||
"n": 0, | ||
"p": 0, | ||
"dt": mydt, | ||
"t_step_start": 0, | ||
"t_step_stop": int(Nt), | ||
"t_step_save": int(Nt / 200), | ||
# Simulation Algorithm Parameters | ||
"num_patches": 2, | ||
"model_eqns": 3, | ||
"alt_soundspeed": "F", | ||
"num_fluids": 1, | ||
"mpp_lim": "F", | ||
"mixture_err": "F", | ||
"time_stepper": 3, | ||
"weno_order": 5, | ||
"weno_eps": 1.0e-16, | ||
"weno_Re_flux": "F", | ||
"weno_avg": "F", | ||
"mapped_weno": "F", | ||
"null_weights": "F", | ||
"mp_weno": "T", | ||
"riemann_solver": 2, | ||
"wave_speeds": 1, | ||
"avg_state": 2, | ||
"bc_x%beg": -3, | ||
"bc_x%end": -3, | ||
#'bc_y%beg' : -3, | ||
#'bc_y%end' : -3, | ||
# Turning on Hyperelasticity | ||
"hyperelasticity": "T", | ||
# Formatted Database Files Structure Parameters | ||
"format": 1, | ||
"precision": 2, | ||
"prim_vars_wrt": "T", | ||
"parallel_io": "F", | ||
# Patch 1 L | ||
"patch_icpp(1)%geometry": 1, | ||
"patch_icpp(1)%x_centroid": 0.25, | ||
# 'patch_icpp(1)%y_centroid' : 0.001, | ||
"patch_icpp(1)%length_x": 0.5, | ||
# 'patch_icpp(1)%length_y' : 0.002, | ||
"patch_icpp(1)%vel(1)": 10, | ||
# 'patch_icpp(1)%vel(2)' : 100*0, | ||
"patch_icpp(1)%pres": 1.0e5, | ||
"patch_icpp(1)%alpha_rho(1)": 1000, | ||
"patch_icpp(1)%alpha(1)": 1.0, | ||
"patch_icpp(1)%tau_e(1)": 0.0, | ||
# Patch 2 R | ||
"patch_icpp(2)%geometry": 1, | ||
"patch_icpp(2)%x_centroid": 0.75, | ||
# 'patch_icpp(2)%y_centroid' : 0.001, | ||
"patch_icpp(2)%length_x": 0.5, | ||
# 'patch_icpp(2)%length_y' : 0.002, | ||
"patch_icpp(2)%vel(1)": 10, # -10, | ||
# 'patch_icpp(2)%vel(2)' : -100*0, | ||
"patch_icpp(2)%pres": 1.0e05, | ||
"patch_icpp(2)%alpha_rho(1)": 1000, | ||
"patch_icpp(2)%alpha(1)": 1.0, | ||
"patch_icpp(2)%tau_e(1)": 0.0, | ||
# Fluids Physical Parameters | ||
"fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00), | ||
"fluid_pp(1)%pi_inf": 4.4e00 * 6.0e08 / (4.4e00 - 1.0e00), | ||
"fluid_pp(1)%G": 1.0e00, # .E+010, | ||
} | ||
) | ||
) |
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,91 @@ | ||
#!/usr/bin/env python3 | ||
import math | ||
import json | ||
|
||
# Numerical setup | ||
Nx = 201 | ||
dx = 1.0 / (1.0 * (Nx + 1)) | ||
|
||
Tend = 41e-06 | ||
Nt = 4000 | ||
mydt = Tend / (1.0 * Nt) | ||
|
||
# Configuring case dictionary | ||
print( | ||
json.dumps( | ||
{ | ||
# Logistics | ||
"run_time_info": "T", | ||
# Computational Domain Parameters | ||
"x_domain%beg": 0.0e00, | ||
"x_domain%end": 1.0e00, | ||
# 'y_domain%beg' : 0.E+00, | ||
# 'y_domain%end' : 0.002, | ||
"m": Nx, | ||
"n": 0, | ||
"p": 0, | ||
"dt": mydt, | ||
"t_step_start": 0, | ||
"t_step_stop": int(Nt), | ||
"t_step_save": int(Nt / 200), | ||
# Simulation Algorithm Parameters | ||
"num_patches": 2, | ||
"model_eqns": 2, | ||
"alt_soundspeed": "F", | ||
"num_fluids": 1, | ||
"mpp_lim": "F", | ||
"mixture_err": "F", | ||
"time_stepper": 3, | ||
"weno_order": 5, | ||
"weno_eps": 1.0e-16, | ||
"weno_Re_flux": "F", | ||
"weno_avg": "F", | ||
"mapped_weno": "F", | ||
"null_weights": "F", | ||
"mp_weno": "T", | ||
"riemann_solver": 2, | ||
"wave_speeds": 1, | ||
"avg_state": 2, | ||
"bc_x%beg": -3, | ||
"bc_x%end": -3, | ||
#'bc_y%beg' : -3, | ||
#'bc_y%end' : -3, | ||
# Turning on Hypoelasticity | ||
"hypoelasticity": "T", | ||
"fd_order": 4, | ||
# Formatted Database Files Structure Parameters | ||
"format": 1, | ||
"precision": 2, | ||
"prim_vars_wrt": "T", | ||
"parallel_io": "F", | ||
# Patch 1 L | ||
"patch_icpp(1)%geometry": 1, | ||
"patch_icpp(1)%x_centroid": 0.25, | ||
# 'patch_icpp(1)%y_centroid' : 0.001, | ||
"patch_icpp(1)%length_x": 0.5, | ||
# 'patch_icpp(1)%length_y' : 0.002, | ||
"patch_icpp(1)%vel(1)": 1000, | ||
# 'patch_icpp(1)%vel(2)' : 100*0, | ||
"patch_icpp(1)%pres": 1.0e5, | ||
"patch_icpp(1)%alpha_rho(1)": 1000, | ||
"patch_icpp(1)%alpha(1)": 1.0, | ||
"patch_icpp(1)%tau_e(1)": 0.0, | ||
# Patch 2 R | ||
"patch_icpp(2)%geometry": 1, | ||
"patch_icpp(2)%x_centroid": 0.75, | ||
# 'patch_icpp(2)%y_centroid' : 0.001, | ||
"patch_icpp(2)%length_x": 0.5, | ||
# 'patch_icpp(2)%length_y' : 0.002, | ||
"patch_icpp(2)%vel(1)": 1000, | ||
# 'patch_icpp(2)%vel(2)' : -100*0, | ||
"patch_icpp(2)%pres": 1.0e05, | ||
"patch_icpp(2)%alpha_rho(1)": 1000, | ||
"patch_icpp(2)%alpha(1)": 1.0, | ||
"patch_icpp(2)%tau_e(1)": 0.0, | ||
# Fluids Physical Parameters | ||
"fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00), | ||
"fluid_pp(1)%pi_inf": 4.4e00 * 6.0e08 / (4.4e00 - 1.0e00), | ||
"fluid_pp(1)%G": 1e010, | ||
} | ||
) | ||
) |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This gives ICFL is NaN error