-
Notifications
You must be signed in to change notification settings - Fork 30
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
Fsi ustruct #341
Open
dcodoni
wants to merge
12
commits into
SimVascular:main
Choose a base branch
from
dcodoni:fsi-ustruct
base: main
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.
Open
Fsi ustruct #341
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
cf0e9bb
Add ustruct to fsi
dcodoni 1bd7b0c
Added tests for FSI using ustruct:
dcodoni 8b8fd97
Tests folder added to FSI using ustruct.
dcodoni 96dc602
Merge latest updates into my branch
dcodoni e4bdb2c
Merge branch 'SimVascular:main' into fsi-ustruct
dcodoni 26e4e5d
Merge branch 'SimVascular:main' into fsi-ustruct
dcodoni e4b6fcb
Merge branch 'main' into fsi-ustruct
mrp089 35640c7
Fixing the duplicate assembly.
dcodoni c1829e7
Fixed spatial dimension bug in bw_fluid_3d and index error in set_bc_…
hanzhao2020 bde2056
Fix a comment
dcodoni b4326a1
Removing redundant comments
dcodoni 0a1140c
Merge branch 'main' into fsi-ustruct
mrp089 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,19 @@ | ||
|
||
# **Problem Description** | ||
|
||
Simulate pressure wave propagation in an arterial model using the Arbitrary Lagrangian-Eulerian method [1]. The problem set-up is as follows. | ||
|
||
<p align="center"> | ||
<img src="./configuration.png" width="600"> | ||
</p> | ||
|
||
And the results are | ||
|
||
<p align="center"> | ||
<img src="./results.gif" width="600"> | ||
</p> | ||
|
||
|
||
## References | ||
|
||
1. Liu, Ju, and Alison L. Marsden. A Unified Continuum and Variational Multiscale Formulation for Fluids, Solids, and Fluid Structure Interaction. *Computer Methods in Applied Mechanics and Engineering* 337 (August 2018): 549 97. https://doi.org/10.1016/j.cma.2018.03.045. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
tests/cases/fsi/pipe_3d_ustruct/mesh/fluid/mesh-complete.mesh.vtu
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/cases/fsi/pipe_3d_ustruct/mesh/fluid/mesh-surfaces/end.vtp
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/cases/fsi/pipe_3d_ustruct/mesh/fluid/mesh-surfaces/interface.vtp
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/cases/fsi/pipe_3d_ustruct/mesh/fluid/mesh-surfaces/start.vtp
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/cases/fsi/pipe_3d_ustruct/mesh/solid/mesh-complete.mesh.vtu
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/cases/fsi/pipe_3d_ustruct/mesh/solid/mesh-surfaces/end.vtp
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/cases/fsi/pipe_3d_ustruct/mesh/solid/mesh-surfaces/interface.vtp
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/cases/fsi/pipe_3d_ustruct/mesh/solid/mesh-surfaces/outside.vtp
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/cases/fsi/pipe_3d_ustruct/mesh/solid/mesh-surfaces/start.vtp
Git LFS file not shown
Git LFS file not shown
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,156 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<svMultiPhysicsFile version="0.1"> | ||
|
||
<GeneralSimulationParameters> | ||
<Continue_previous_simulation> 0 </Continue_previous_simulation> | ||
<Number_of_spatial_dimensions> 3 </Number_of_spatial_dimensions> | ||
<Number_of_time_steps> 5 </Number_of_time_steps> | ||
<Time_step_size> 1e-4 </Time_step_size> | ||
<Spectral_radius_of_infinite_time_step> 0.50 </Spectral_radius_of_infinite_time_step> | ||
<Searched_file_name_to_trigger_stop> STOP_SIM </Searched_file_name_to_trigger_stop> | ||
<Save_results_to_VTK_format> true </Save_results_to_VTK_format> | ||
<Name_prefix_of_saved_VTK_files> result </Name_prefix_of_saved_VTK_files> | ||
<Increment_in_saving_VTK_files> 5 </Increment_in_saving_VTK_files> | ||
<Start_saving_after_time_step> 1 </Start_saving_after_time_step> | ||
<Increment_in_saving_restart_files> 1 </Increment_in_saving_restart_files> | ||
<Convert_BIN_to_VTK_format> 0 </Convert_BIN_to_VTK_format> | ||
<Verbose> 1 </Verbose> | ||
<Warning> 0 </Warning> | ||
<Debug> 0 </Debug> | ||
</GeneralSimulationParameters> | ||
|
||
<Add_mesh name="lumen" > | ||
<Mesh_file_path> mesh/fluid/mesh-complete.mesh.vtu </Mesh_file_path> | ||
<Add_face name="lumen_inlet"> | ||
<Face_file_path> mesh/fluid/mesh-surfaces/start.vtp </Face_file_path> | ||
</Add_face> | ||
<Add_face name="lumen_outlet"> | ||
<Face_file_path> mesh/fluid/mesh-surfaces/end.vtp </Face_file_path> | ||
</Add_face> | ||
<Add_face name="lumen_wall"> | ||
<Face_file_path> mesh/fluid/mesh-surfaces/interface.vtp </Face_file_path> | ||
</Add_face> | ||
<Domain> 0 </Domain> | ||
|
||
</Add_mesh> | ||
|
||
<Add_mesh name="wall" > | ||
<Mesh_file_path> mesh/solid/mesh-complete.mesh.vtu </Mesh_file_path> | ||
<Add_face name="wall_inlet"> | ||
<Face_file_path> mesh/solid/mesh-surfaces/start.vtp </Face_file_path> | ||
</Add_face> | ||
<Add_face name="wall_outlet"> | ||
<Face_file_path> mesh/solid/mesh-surfaces/end.vtp </Face_file_path> | ||
</Add_face> | ||
<Add_face name="wall_inner"> | ||
<Face_file_path> mesh/solid/mesh-surfaces/interface.vtp </Face_file_path> | ||
</Add_face> | ||
<Add_face name="wall_outer"> | ||
<Face_file_path> mesh/solid/mesh-surfaces/outside.vtp </Face_file_path> | ||
</Add_face> | ||
<Domain> 1 </Domain> | ||
</Add_mesh> | ||
|
||
<Add_projection name="wall_inner" > | ||
<Project_from_face> lumen_wall </Project_from_face> | ||
</Add_projection> | ||
|
||
<Add_equation type="FSI" > | ||
<Coupled> true </Coupled> | ||
<Min_iterations> 1 </Min_iterations> | ||
<Max_iterations> 7 </Max_iterations> | ||
<Tolerance> 1e-12 </Tolerance> | ||
|
||
<Domain id="0" > | ||
<Equation> fluid </Equation> | ||
<Density> 1.0 </Density> | ||
<Viscosity model="Constant" > | ||
<Value> 0.04 </Value> | ||
</Viscosity> | ||
<Backflow_stabilization_coefficient> 0.2 </Backflow_stabilization_coefficient> | ||
</Domain> | ||
|
||
<Domain id="1" > | ||
<Equation> ustruct </Equation> | ||
<Constitutive_model type="neoHookean"> </Constitutive_model> | ||
<Dilational_penalty_model> M94 </Dilational_penalty_model> | ||
<Density> 1.0 </Density> | ||
<Elasticity_modulus> 1.0e7 </Elasticity_modulus> | ||
<Poisson_ratio> 0.3 </Poisson_ratio> | ||
</Domain> | ||
|
||
<LS type="GMRES" > | ||
<Linear_algebra type="fsils" > | ||
<Preconditioner> fsils </Preconditioner> | ||
</Linear_algebra> | ||
<Tolerance> 1e-12 </Tolerance> | ||
<Max_iterations> 100 </Max_iterations> | ||
<Krylov_space_dimension> 50 </Krylov_space_dimension> | ||
</LS> | ||
|
||
<Output type="Spatial" > | ||
<Displacement> true </Displacement> | ||
<Velocity> true </Velocity> | ||
<Pressure> true </Pressure> | ||
<VonMises_stress> true </VonMises_stress> | ||
</Output> | ||
|
||
<Output type="Alias" > | ||
<Displacement> FS_Displacement </Displacement> | ||
</Output> | ||
|
||
<Add_BC name="lumen_inlet" > | ||
<Type> Neu </Type> | ||
<Value> 5.0e4 </Value> | ||
</Add_BC> | ||
|
||
<Add_BC name="wall_inlet" > | ||
<Type> Dir </Type> | ||
<Value> 0.0 </Value> | ||
<Impose_on_state_variable_integral> true </Impose_on_state_variable_integral> | ||
<Zero_out_perimeter> false </Zero_out_perimeter> | ||
<Effective_direction> (0, 0, 1) </Effective_direction> | ||
</Add_BC> | ||
|
||
<Add_BC name="wall_outlet" > | ||
<Type> Dir </Type> | ||
<Value> 0.0 </Value> | ||
<Impose_on_state_variable_integral> true </Impose_on_state_variable_integral> | ||
<Zero_out_perimeter> false </Zero_out_perimeter> | ||
<Effective_direction> (0, 0, 1 ) </Effective_direction> | ||
</Add_BC> | ||
|
||
</Add_equation> | ||
|
||
|
||
<Add_equation type="mesh" > | ||
<Coupled> true </Coupled> | ||
<Min_iterations> 1 </Min_iterations> | ||
<Max_iterations> 7 </Max_iterations> | ||
<Tolerance> 1e-12 </Tolerance> | ||
<Poisson_ratio> 0.3 </Poisson_ratio> | ||
|
||
<LS type="CG" > | ||
<Linear_algebra type="fsils" > | ||
<Preconditioner> fsils </Preconditioner> | ||
</Linear_algebra> | ||
<Tolerance> 1e-12 </Tolerance> | ||
</LS> | ||
|
||
<Output type="Spatial" > | ||
<Displacement> true </Displacement> | ||
</Output> | ||
|
||
<Add_BC name="lumen_inlet" > | ||
<Type> Dir </Type> | ||
<Value> 0.0 </Value> | ||
</Add_BC> | ||
|
||
<Add_BC name="lumen_outlet" > | ||
<Type> Dir </Type> | ||
<Value> 0.0 </Value> | ||
</Add_BC> | ||
|
||
</Add_equation> | ||
|
||
</svMultiPhysicsFile> |
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 @@ | ||
|
||
# **Problem Description** | ||
Same as pipe_3d, but uses RCR boundary condition on lumen_outlet. |
3 changes: 3 additions & 0 deletions
3
tests/cases/fsi/pipe_RCR_3d_ustruct/mesh/fluid/mesh-complete.mesh.vtu
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/cases/fsi/pipe_RCR_3d_ustruct/mesh/fluid/mesh-surfaces/end.vtp
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/cases/fsi/pipe_RCR_3d_ustruct/mesh/fluid/mesh-surfaces/interface.vtp
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/cases/fsi/pipe_RCR_3d_ustruct/mesh/fluid/mesh-surfaces/start.vtp
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/cases/fsi/pipe_RCR_3d_ustruct/mesh/solid/mesh-complete.mesh.vtu
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/cases/fsi/pipe_RCR_3d_ustruct/mesh/solid/mesh-surfaces/end.vtp
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/cases/fsi/pipe_RCR_3d_ustruct/mesh/solid/mesh-surfaces/interface.vtp
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/cases/fsi/pipe_RCR_3d_ustruct/mesh/solid/mesh-surfaces/outside.vtp
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
tests/cases/fsi/pipe_RCR_3d_ustruct/mesh/solid/mesh-surfaces/start.vtp
Git LFS file not shown
Git LFS file not shown
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.
Are you assembling twice, calling
ustruct::ustruct_do_assem()
and theneq.linear_algebra->assemble()
?