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
8 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Allow for different velocity and pressure fields
parent
80b371bd
No related branches found
No related tags found
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 @@
/* Local includes. */
#include
"config.h"
#include
"const.h"
#include
"hydro.h"
#include
"inline.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 {
/* Particle density. */
float
rho
;
/* Derivative of the density with respect to this particle's smoothing length.
*/
float
rho_dh
;
/* Particle entropy. */
float
entropy
;
/* Derivative of the density with respect to
smoothing length. */
/* Derivative of the density with respect to smoothing length. */
float
rho_dh
;
union
{
//
union {
struct
{
struct
{
/* Number of neighbours. */
float
wcount
;
/* Number of neighbours. */
float
wcount
;
/* Number of neighbours spatial derivative. */
float
wcount_dh
;
/* Number of neighbours spatial derivative. */
float
wcount_dh
;
/* Particle velocity curl. */
float
rot_v
[
3
];
/* Particle velocity curl. */
float
rot_v
[
3
];
/* Particle velocity divergence. */
float
div_v
;
/* Particle velocity divergence. */
float
div_v
;
}
density
;
}
density
;
struct
{
struct
{
/* Balsara switch */
float
balsara
;
/* Balsara switch */
float
balsara
;
/* Pressure over density squared (including drho/dh term) */
float
P_over_rho2
;
/* Pressure over density squared (including drho/dh term) */
float
P_over_rho2
;
/* Particle sound speed. */
float
soundspeed
;
/* Particle sound speed. */
float
soundspeed
;
/* Signal velocity. */
float
v_sig
;
/* Signal velocity. */
float
v_sig
;
/* Entropy time derivative */
float
entropy_dt
;
/* Entropy time derivative */
float
entropy_dt
;
/* Time derivative of the smoothing length */
float
h_dt
;
/* Time derivative of the smoothing length */
float
h_dt
;
}
force
;
};
}
force
;
//
};
/* Particle 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