Skip to content

Commit

Permalink
define fundamental derivative G
Browse files Browse the repository at this point in the history
  • Loading branch information
psharda committed Aug 2, 2023
1 parent 249e109 commit a38ff14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion EOS/gamma_law/actual_eos.H
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ void actual_eos (I input, T& state)

// sound speed
state.cs = std::sqrt(eos_gamma * state.p * rhoinv);
state.d2pdr2_s = state.cs * state.cs * (std::pow(state.cs, 2) / state.p - rhoinv);
state.G = 0.5 * (1.0 + (rho / state.p) * state.cs * state.cs);
}
}

Expand Down
4 changes: 2 additions & 2 deletions interfaces/eos_type.H
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ struct eos_t:eos_base_t {
amrex::Real dsdr{};
amrex::Real dpde{};
amrex::Real dpdr_e{};
amrex::Real d2pdr2_s{};
amrex::Real G{}; // fundmental derivative (Thompson 1971)

amrex::Real cv{};
amrex::Real cp{};
Expand Down Expand Up @@ -146,7 +146,7 @@ struct chem_eos_t:eos_base_t {
amrex::Real dpdr_e{};
amrex::Real dedT{};
amrex::Real dedr{};
amrex::Real d2pdr2_s{};
amrex::Real G{};

amrex::Real mu{};
amrex::Real cs{};
Expand Down

0 comments on commit a38ff14

Please sign in to comment.