Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
1a851b57
Commit
1a851b57
authored
May 01, 2016
by
Matthieu Schaller
Browse files
Propagated changes to the other initial condition YAML files.
parent
e8c8f69a
Changes
7
Hide whitespace changes
Inline
Side-by-side
examples/CosmoVolume/cosmoVolume.yml
View file @
1a851b57
...
...
@@ -34,11 +34,12 @@ Snapshots:
# Parameters for the hydrodynamics scheme
SPH
:
resolution_eta
:
1.2349
# Target smoothing length in units of the mean inter-particle separation (1.2349 == 48Ngbs with the cubic spline kernel).
delta_neighbours
:
1.
# The tolerance for the targetted number of neighbours.
CFL_condition
:
0.1
# Courant-Friedrich-Levy condition for time integration.
resolution_eta
:
1.2348
# Target smoothing length in units of the mean inter-particle separation (1.2348 == 48Ngbs with the cubic spline kernel).
delta_neighbours
:
0.1
# The tolerance for the targetted number of neighbours.
max_ghost_iterations
:
30
# Maximal number of iterations allowed to converge towards the smoothing length.
max_smoothing_length
:
0.6
# Maximal smoothing length allowed (in internal units).
max_smoothing_length
:
0.1
# Maximal smoothing length allowed (in internal units).
CFL_condition
:
0.1
# Courant-Friedrich-Levy condition for time integration.
max_volume_change
:
2.
# Maximal allowed change of volume over one time-step
# Parameters related to the initial conditions
InitialConditions
:
...
...
examples/ExternalPointMass/externalPointMass.yml
View file @
1a851b57
...
...
@@ -34,11 +34,12 @@ Snapshots:
# Parameters for the hydrodynamics scheme
SPH
:
resolution_eta
:
1.2349
# Target smoothing length in units of the mean inter-particle separation (1.2349 == 48Ngbs with the cubic spline kernel).
delta_neighbours
:
1.
# The tolerance for the targetted number of neighbours.
CFL_condition
:
0.1
# Courant-Friedrich-Levy condition for time integration.
resolution_eta
:
1.2348
# Target smoothing length in units of the mean inter-particle separation (1.2348 == 48Ngbs with the cubic spline kernel).
delta_neighbours
:
0.1
# The tolerance for the targetted number of neighbours.
max_ghost_iterations
:
30
# Maximal number of iterations allowed to converge towards the smoothing length.
max_smoothing_length
:
10.
# Maximal smoothing length allowed (in internal units).
max_smoothing_length
:
0.1
# Maximal smoothing length allowed (in internal units).
CFL_condition
:
0.1
# Courant-Friedrich-Levy condition for time integration.
max_volume_change
:
2.
# Maximal allowed change of volume over one time-step
# Parameters related to the initial conditions
InitialConditions
:
...
...
examples/SedovBlast/sedov.yml
View file @
1a851b57
...
...
@@ -34,11 +34,12 @@ Snapshots:
# Parameters for the hydrodynamics scheme
SPH
:
resolution_eta
:
1.2349
# Target smoothing length in units of the mean inter-particle separation (1.2349 == 48Ngbs with the cubic spline kernel).
delta_neighbours
:
1.
# The tolerance for the targetted number of neighbours.
CFL_condition
:
0.1
# Courant-Friedrich-Levy condition for time integration.
resolution_eta
:
1.2348
# Target smoothing length in units of the mean inter-particle separation (1.2348 == 48Ngbs with the cubic spline kernel).
delta_neighbours
:
0.1
# The tolerance for the targetted number of neighbours.
max_ghost_iterations
:
30
# Maximal number of iterations allowed to converge towards the smoothing length.
max_smoothing_length
:
1.
# Maximal smoothing length allowed (in internal units).
max_smoothing_length
:
0.1
# Maximal smoothing length allowed (in internal units).
CFL_condition
:
0.1
# Courant-Friedrich-Levy condition for time integration.
max_volume_change
:
2.
# Maximal allowed change of volume over one time-step
# Parameters related to the initial conditions
InitialConditions
:
...
...
examples/SodShock/sodShock.yml
View file @
1a851b57
...
...
@@ -34,11 +34,12 @@ Snapshots:
# Parameters for the hydrodynamics scheme
SPH
:
resolution_eta
:
1.2349
# Target smoothing length in units of the mean inter-particle separation (1.2349 == 48Ngbs with the cubic spline kernel).
delta_neighbours
:
1.
# The tolerance for the targetted number of neighbours.
CFL_condition
:
0.1
# Courant-Friedrich-Levy condition for time integration.
resolution_eta
:
1.2348
# Target smoothing length in units of the mean inter-particle separation (1.2348 == 48Ngbs with the cubic spline kernel).
delta_neighbours
:
0.1
# The tolerance for the targetted number of neighbours.
max_ghost_iterations
:
30
# Maximal number of iterations allowed to converge towards the smoothing length.
max_smoothing_length
:
0.01
# Maximal smoothing length allowed (in internal units).
max_smoothing_length
:
0.1
# Maximal smoothing length allowed (in internal units).
CFL_condition
:
0.1
# Courant-Friedrich-Levy condition for time integration.
max_volume_change
:
2.
# Maximal allowed change of volume over one time-step
# Parameters related to the initial conditions
InitialConditions
:
...
...
examples/UniformBox/uniformBox.yml
View file @
1a851b57
...
...
@@ -34,7 +34,7 @@ Snapshots:
# Parameters for the hydrodynamics scheme
SPH
:
resolution_eta
:
1.2348
# Target smoothing length in units of the mean inter-particle separation (1.234
9
== 48Ngbs with the cubic spline kernel).
resolution_eta
:
1.2348
# Target smoothing length in units of the mean inter-particle separation (1.234
8
== 48Ngbs with the cubic spline kernel).
delta_neighbours
:
0.1
# The tolerance for the targetted number of neighbours.
max_ghost_iterations
:
30
# Maximal number of iterations allowed to converge towards the smoothing length.
max_smoothing_length
:
0.1
# Maximal smoothing length allowed (in internal units).
...
...
examples/parameter_example.yml
View file @
1a851b57
...
...
@@ -34,11 +34,12 @@ Snapshots:
# Parameters for the hydrodynamics scheme
SPH
:
resolution_eta
:
1.2349
# Target smoothing length in units of the mean inter-particle separation (1.2349 == 48Ngbs with the cubic spline kernel).
delta_neighbours
:
1.
# The tolerance for the targetted number of neighbours.
CFL_condition
:
0.1
# Courant-Friedrich-Levy condition for time integration.
resolution_eta
:
1.2348
# Target smoothing length in units of the mean inter-particle separation (1.2348 == 48Ngbs with the cubic spline kernel).
delta_neighbours
:
0.1
# The tolerance for the targetted number of neighbours.
max_ghost_iterations
:
30
# Maximal number of iterations allowed to converge towards the smoothing length.
max_smoothing_length
:
3.
# Maximal smoothing length allowed (in internal units).
max_smoothing_length
:
0.1
# Maximal smoothing length allowed (in internal units).
CFL_condition
:
0.1
# Courant-Friedrich-Levy condition for time integration.
max_volume_change
:
2.
# Maximal allowed change of volume over one time-step
# Parameters related to the initial conditions
InitialConditions
:
...
...
src/hydro_properties.c
View file @
1a851b57
...
...
@@ -45,7 +45,7 @@ void hydro_props_init(struct hydro_props *p,
p
->
CFL_condition
=
parser_get_param_float
(
params
,
"SPH:CFL_condition"
);
const
float
max_volume_change
=
parser_get_param_float
(
params
,
"SPH:max_volume_change"
);
p
->
log_max_h_change
=
log
(
powf
(
max_volume_change
,
0
.
33333333333
f
));
p
->
log_max_h_change
=
log
f
(
powf
(
max_volume_change
,
0
.
33333333333
f
));
}
void
hydro_props_print
(
const
struct
hydro_props
*
p
)
{
...
...
@@ -56,6 +56,7 @@ void hydro_props_print(const struct hydro_props *p) {
p
->
eta_neighbours
);
message
(
"Hydrodynamic integration: CFL parmeter: %.4f."
,
p
->
CFL_condition
);
message
(
"Hydrodynamic integration: Max change of volume: %.2f (dlog(h)/dt=%f)."
,
"Hydrodynamic integration: Max change of volume: %.2f"
"(max |dlog(h)/dt|=%f)."
,
powf
(
expf
(
p
->
log_max_h_change
),
3
.
f
),
p
->
log_max_h_change
);
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment