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
0fa621b1
Commit
0fa621b1
authored
7 years ago
by
Josh Borrow
Browse files
Options
Downloads
Patches
Plain Diff
Moved to using the smoothed pressure
parent
6b2df9b7
No related branches found
No related tags found
1 merge request
!540
Add Pressure-Energy (P-U) SPH
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/hydro/PressureEnergy/hydro.h
+2
-3
2 additions, 3 deletions
src/hydro/PressureEnergy/hydro.h
with
2 additions
and
3 deletions
src/hydro/PressureEnergy/hydro.h
+
2
−
3
View file @
0fa621b1
...
@@ -88,7 +88,7 @@ hydro_get_physical_internal_energy(const struct part *restrict p,
...
@@ -88,7 +88,7 @@ hydro_get_physical_internal_energy(const struct part *restrict p,
__attribute__
((
always_inline
))
INLINE
static
float
hydro_get_comoving_pressure
(
__attribute__
((
always_inline
))
INLINE
static
float
hydro_get_comoving_pressure
(
const
struct
part
*
restrict
p
)
{
const
struct
part
*
restrict
p
)
{
return
gas_
pressure_
from_internal_energy
(
p
->
rho
,
p
->
u
)
;
return
p
->
pressure_
bar
;
}
}
/**
/**
...
@@ -103,8 +103,7 @@ __attribute__((always_inline)) INLINE static float hydro_get_comoving_pressure(
...
@@ -103,8 +103,7 @@ __attribute__((always_inline)) INLINE static float hydro_get_comoving_pressure(
__attribute__
((
always_inline
))
INLINE
static
float
hydro_get_physical_pressure
(
__attribute__
((
always_inline
))
INLINE
static
float
hydro_get_physical_pressure
(
const
struct
part
*
restrict
p
,
const
struct
cosmology
*
cosmo
)
{
const
struct
part
*
restrict
p
,
const
struct
cosmology
*
cosmo
)
{
return
cosmo
->
a_factor_pressure
*
return
cosmo
->
a_factor_pressure
*
p
->
pressure_bar
;
gas_pressure_from_internal_energy
(
p
->
rho
,
p
->
u
);
}
}
/**
/**
...
...
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