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
262f7b78
Commit
262f7b78
authored
Aug 16, 2016
by
Matthieu Schaller
Browse files
Better documentation of the minimal SPH implementation
parent
16a92652
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/hydro/Gadget2/hydro_io.h
View file @
262f7b78
...
...
@@ -107,9 +107,10 @@ void writeSPHflavour(hid_t h_grpsph) {
/* Viscosity and thermal conduction */
writeAttribute_s
(
h_grpsph
,
"Thermal Conductivity Model"
,
"(No treatment) Legacy Gadget-2 as in Springel (2005)"
);
writeAttribute_s
(
h_grpsph
,
"Viscosity Model"
,
"Legacy Gadget-2 as in Springel (2005)"
);
"(No treatment) as in Springel (2005)"
);
writeAttribute_s
(
h_grpsph
,
"Viscosity Model"
,
"as in Springel (2005), i.e. Monaghan (1992) with Balsara (1995) switch"
);
writeAttribute_f
(
h_grpsph
,
"Viscosity alpha"
,
const_viscosity_alpha
);
writeAttribute_f
(
h_grpsph
,
"Viscosity beta"
,
3
.
f
);
}
...
...
src/hydro/Minimal/hydro_iact.h
View file @
262f7b78
...
...
@@ -22,10 +22,12 @@
#include
"adiabatic_index.h"
/**
* @file hydro_iact.h
* @brief Minimal conservative implementation of SPH
*
* The thermal variable is the internal energy (u). No viscosity nor
* thermal conduction terms are implemented.
* The thermal variable is the internal energy (u). Simple constant
* viscosity term without switche is implemented. No thermal conduction
* terms is implemented.
*/
/**
...
...
src/hydro/Minimal/hydro_io.h
View file @
262f7b78
...
...
@@ -107,8 +107,9 @@ void writeSPHflavour(hid_t h_grpsph) {
/* Viscosity and thermal conduction */
/* Nothing in this minimal model... */
writeAttribute_s
(
h_grpsph
,
"Thermal Conductivity Model"
,
"No model"
);
writeAttribute_s
(
h_grpsph
,
"Viscosity Model"
,
"No model"
);
writeAttribute_s
(
h_grpsph
,
"Thermal Conductivity Model"
,
"No treatment"
);
writeAttribute_s
(
h_grpsph
,
"Viscosity Model"
,
"Minimal treatment as in Monaghan (1992)"
);
/* Time integration properties */
writeAttribute_f
(
h_grpsph
,
"Maximal Delta u change over dt"
,
...
...
src/hydro_properties.c
View file @
262f7b78
...
...
@@ -70,7 +70,7 @@ void hydro_props_print(const struct hydro_props *p) {
message
(
"Hydrodynamic integration: Max change of volume: %.2f "
"(max|dlog(h)/dt|=%f)."
,
pow
f
(
expf
(
p
->
log_max_h_change
)
,
hydro_dimension
),
p
->
log_max_h_change
);
pow
_dimension
(
expf
(
p
->
log_max_h_change
)),
p
->
log_max_h_change
);
if
(
p
->
max_smoothing_iterations
!=
hydro_props_default_max_iterations
)
message
(
"Maximal iterations in ghost task set to %d (default is %d)"
,
...
...
@@ -90,8 +90,8 @@ void hydro_props_print_snapshot(hid_t h_grpsph, const struct hydro_props *p) {
writeAttribute_f
(
h_grpsph
,
"CFL parameter"
,
p
->
CFL_condition
);
writeAttribute_f
(
h_grpsph
,
"Volume log(max(delta h))"
,
p
->
log_max_h_change
);
writeAttribute_f
(
h_grpsph
,
"Volume max change time-step"
,
pow
f
(
expf
(
p
->
log_max_h_change
)
,
3
.
f
));
writeAttribute_
f
(
h_grpsph
,
"Max ghost iterations"
,
pow
_dimension
(
expf
(
p
->
log_max_h_change
)));
writeAttribute_
i
(
h_grpsph
,
"Max ghost iterations"
,
p
->
max_smoothing_iterations
);
}
#endif
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