Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
d820e7f2
Commit
d820e7f2
authored
9 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Allow for different velocity and pressure fields
parent
80b371bd
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!208
Test 125
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/debug.c
+1
-0
1 addition, 0 deletions
src/debug.c
src/hydro/Gadget2/hydro_part.h
+27
-31
27 additions, 31 deletions
src/hydro/Gadget2/hydro_part.h
with
28 additions
and
31 deletions
src/debug.c
+
1
−
0
View file @
d820e7f2
...
@@ -32,6 +32,7 @@
...
@@ -32,6 +32,7 @@
/* Local includes. */
/* Local includes. */
#include
"config.h"
#include
"config.h"
#include
"const.h"
#include
"const.h"
#include
"hydro.h"
#include
"inline.h"
#include
"inline.h"
#include
"part.h"
#include
"part.h"
...
...
This diff is collapsed.
Click to expand it.
src/hydro/Gadget2/hydro_part.h
+
27
−
31
View file @
d820e7f2
...
@@ -55,56 +55,52 @@ struct part {
...
@@ -55,56 +55,52 @@ struct part {
/* Particle density. */
/* Particle density. */
float
rho
;
float
rho
;
/* Derivative of the density with respect to this particle's smoothing length.
*/
float
rho_dh
;
/* Particle entropy. */
/* Particle entropy. */
float
entropy
;
float
entropy
;
/* Derivative of the density with respect to
smoothing length. */
/* Derivative of the density with respect to smoothing length. */
float
rho_dh
;
float
rho_dh
;
union
{
//
union {
struct
{
struct
{
/* Number of neighbours. */
/* Number of neighbours. */
float
wcount
;
float
wcount
;
/* Number of neighbours spatial derivative. */
/* Number of neighbours spatial derivative. */
float
wcount_dh
;
float
wcount_dh
;
/* Particle velocity curl. */
/* Particle velocity curl. */
float
rot_v
[
3
];
float
rot_v
[
3
];
/* Particle velocity divergence. */
/* Particle velocity divergence. */
float
div_v
;
float
div_v
;
}
density
;
}
density
;
struct
{
struct
{
/* Balsara switch */
/* Balsara switch */
float
balsara
;
float
balsara
;
/* Pressure over density squared (including drho/dh term) */
/* Pressure over density squared (including drho/dh term) */
float
P_over_rho2
;
float
P_over_rho2
;
/* Particle sound speed. */
/* Particle sound speed. */
float
soundspeed
;
float
soundspeed
;
/* Signal velocity. */
/* Signal velocity. */
float
v_sig
;
float
v_sig
;
/* Entropy time derivative */
/* Entropy time derivative */
float
entropy_dt
;
float
entropy_dt
;
/* Time derivative of the smoothing length */
/* Time derivative of the smoothing length */
float
h_dt
;
float
h_dt
;
}
force
;
}
force
;
};
//
};
/* Particle ID. */
/* Particle ID. */
long
long
id
;
long
long
id
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment