-
Notifications
You must be signed in to change notification settings - Fork 59
Initial implementation of spray capability for Manifold EOS #620
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: development
Are you sure you want to change the base?
Changes from 36 commits
62fb5fc
56e0cd8
330b2a6
81115b8
2b1259d
0faf78d
8126415
a22d34d
ea2002b
04f4ba3
08e76fa
86e6e07
4899bea
b21b986
55bf45f
bf49d1b
c2a8d69
fa12941
552cd8e
9b9d63e
a783f11
d76ed01
65fd559
bc9769c
2765188
b970142
93d2943
942d4e4
ccc0091
8672353
6e64f36
7c8b27d
453bc2d
41e653c
62c0301
873d242
3631b20
21e1b5a
f0fea78
407e3b4
5ed2f5a
db0ee28
b58c80d
597f3ce
743a881
2cec508
2a2175d
dc1260e
fbbc7ea
41193a3
aac8e0c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,11 +60,17 @@ struct Manifold | |
|
||
AMREX_GPU_HOST_DEVICE | ||
AMREX_FORCE_INLINE | ||
static void molecular_weight(amrex::Real* /*mw[]*/) | ||
void molecular_weight(amrex::Real* mw) | ||
{ | ||
amrex::Error( | ||
"molecular_weight for species does not have significance for " | ||
"Manifold EOS"); | ||
if (eosparm->has_species_mw) { | ||
for (int n = 0; n < eosparm->num_chemspecies; n++) { | ||
mw[n] = eosparm->chemSpecies_Mwt[n]; | ||
} | ||
} else { | ||
amrex::Error( | ||
"molecular_weight for species does not have significance " | ||
"for Manifold EOS"); | ||
} | ||
} | ||
|
||
AMREX_GPU_HOST_DEVICE | ||
|
@@ -87,6 +93,29 @@ struct Manifold | |
} | ||
} | ||
|
||
AMREX_GPU_HOST_DEVICE | ||
AMREX_FORCE_INLINE | ||
void Y2GenericManifoldData( | ||
const amrex::Real* Y, // manifold variables (z,c etc) | ||
int* table_idx, // Indices of the table columns | ||
amrex::Real* out_vars, | ||
int num_of_indices // len of table_idx | ||
) | ||
{ | ||
manfunc.get_func()->get_values(num_of_indices, table_idx, Y, out_vars); | ||
} | ||
|
||
AMREX_GPU_HOST_DEVICE | ||
AMREX_FORCE_INLINE | ||
void Y2ChemSpecies( | ||
const amrex::Real* Y, // manifold variables (z,c etc) | ||
const int spec_index, | ||
amrex::Real& chem_spec) | ||
{ | ||
manfunc.get_func()->get_value( | ||
eosparm->idx_chemspecies[spec_index], Y, chem_spec); | ||
} | ||
|
||
AMREX_GPU_HOST_DEVICE | ||
AMREX_FORCE_INLINE | ||
static void RTY2Ei( | ||
|
@@ -154,10 +183,13 @@ struct Manifold | |
// Adding a dummy T2Cpi function | ||
AMREX_GPU_HOST_DEVICE | ||
AMREX_FORCE_INLINE | ||
static void T2Cpi(const amrex::Real /*T*/, amrex::Real* /*Cpi[NUM_SPECIES]*/) | ||
static void T2Cpi(const amrex::Real T, amrex::Real Cpi[NUM_SPECIES]) | ||
|
||
{ | ||
for (int i = 0; i < NUM_SPECIES; i++) { | ||
Cpi[i] = 1.0; | ||
} | ||
// TODO: FIXME (T2Cpi need to be implemented for manifold model) | ||
amrex::Abort("\nT2Cpi is not yet implemented for Maniold model"); | ||
// amrex::Abort("\nT2Cpi is not yet implemented for Maniold model"); | ||
|
||
} | ||
|
||
AMREX_GPU_HOST_DEVICE | ||
|
Uh oh!
There was an error while loading. Please reload this page.