Skip to content
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

Add ideal gas equation #607

Merged
merged 40 commits into from
Nov 20, 2024
Merged
Changes from 2 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
ed83ea1
set test up for 1.11
svchb Aug 8, 2024
493e26b
Merge branch 'main' into prepare_for_1.11
svchb Aug 12, 2024
bad7de8
add basic struct
svchb Aug 20, 2024
aa90aae
add export
svchb Aug 20, 2024
7841461
make equation available
svchb Aug 20, 2024
1e07757
format
svchb Aug 20, 2024
98065e6
typo
svchb Aug 20, 2024
6eb6fec
fix docs
svchb Aug 20, 2024
83ebc5f
add exmaple
svchb Aug 21, 2024
aa9348c
format
svchb Aug 21, 2024
f65eb5a
fix
svchb Aug 22, 2024
31b2f75
Merge branch 'main' into prepare_for_1.11
svchb Oct 9, 2024
1d05304
Merge branch 'main' into prepare_for_1.11
svchb Oct 9, 2024
4ed0b91
Increase errors for 1.11
svchb Oct 9, 2024
1ce0460
Fix invalidations
svchb Oct 9, 2024
1774f5a
Fix tests
svchb Oct 9, 2024
4daf984
Update ci.yml
svchb Oct 9, 2024
ac2eb2c
revert
svchb Oct 9, 2024
258f2ba
Update ci.yml
svchb Oct 9, 2024
1a9f3f5
Update test/validation/validation.jl
svchb Oct 10, 2024
796b1d1
Merge branch 'main' into add_ideal_gas
svchb Oct 10, 2024
c402975
Merge remote-tracking branch 'origin/prepare_for_1.11' into add_ideal…
svchb Oct 10, 2024
83514da
Merge remote-tracking branch 'origin/add_ideal_gas' into add_ideal_gas
svchb Oct 10, 2024
f267d43
Merge branch 'main' into add_ideal_gas
svchb Oct 11, 2024
f9e2202
Merge branch 'main' into add_ideal_gas
svchb Nov 13, 2024
77493f5
format
svchb Nov 13, 2024
d4016a6
review fixes
svchb Nov 16, 2024
7afffb4
Merge branch 'add_ideal_gas' of https://github.com/svchb/TrixiParticl…
svchb Nov 16, 2024
3dfa4e4
Merge branch 'main' into add_ideal_gas
svchb Nov 16, 2024
1467107
add test
svchb Nov 16, 2024
fc4f61b
fix example
svchb Nov 16, 2024
33a704a
fix test
svchb Nov 16, 2024
eeca819
review comments
svchb Nov 18, 2024
c18b774
Merge branch 'main' into add_ideal_gas
svchb Nov 18, 2024
f5dac70
Merge branch 'main' into add_ideal_gas
svchb Nov 18, 2024
96e1cf6
fix docs
svchb Nov 19, 2024
747bf1c
Update src/schemes/fluid/weakly_compressible_sph/state_equations.jl
svchb Nov 19, 2024
4f66fa7
forgot to edit the other doc
svchb Nov 19, 2024
8faa548
Merge branch 'main' into add_ideal_gas
svchb Nov 19, 2024
1cab8eb
Merge branch 'main' into add_ideal_gas
svchb Nov 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions src/schemes/fluid/weakly_compressible_sph/state_equations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ of water up to high pressures.
- `reference_density`: Reference density of the fluid.
- `exponent`: A value of `7` is usually used for most simulations.
- `background_pressure=0.0`: Background pressure.
- `clip_negative_pressure=false`: Negative pressure values are clipped to 0 which is necessary for `SummationDensity`.
svchb marked this conversation as resolved.
Show resolved Hide resolved
"""
struct StateEquationCole{ELTYPE, CLIP} # Boolean to clip negative pressure
sound_speed :: ELTYPE
Expand Down Expand Up @@ -51,17 +52,18 @@ function inverse_state_equation(state_equation::StateEquationCole, pressure)
end

@doc raw"""
StateEquationIdealGas(;sound_speed, reference_density, gamma, background_pressure=0.0,
StateEquationIdealGas( ;sound_speed, reference_density, gamma, background_pressure=0.0,
clip_negative_pressure=false)

Equation of state to describe the relationship between pressure and density
of a gas using the Ideal Gas Law.

# Keywords
- `sound_speed` : Artificial speed of sound.
- `reference_density` : Reference density of the fluid.
- `gamma` : Heat-capacity ratio
- `background_pressure=0.0`: Background pressure.
- `sound_speed` : Artificial speed of sound.
- `reference_density` : Reference density of the fluid.
- `gamma` : Heat-capacity ratio
- `background_pressure=0.0` : Background pressure.
- `clip_negative_pressure=false`: Negative pressure values are clipped to 0 which is necessary for `SummationDensity`.
"""
struct StateEquationIdealGas{ELTYPE, CLIP}
sound_speed :: ELTYPE
Expand Down
Loading