| /libCEED/examples/fluids/qfunctions/ |
| H A D | newtonian_state.h | 49 …ION_HELPER CeedScalar HeatCapacityRatio(NewtonianIdealGasContext gas) { return gas->cp / gas->cv; } in HeatCapacityRatio() argument 51 CEED_QFUNCTION_HELPER CeedScalar GasConstant(NewtonianIdealGasContext gas) { return gas->cp - gas->… in GasConstant() argument 53 …NCTION_HELPER CeedScalar Prandtl(NewtonianIdealGasContext gas) { return gas->cp * gas->mu / gas->k… in Prandtl() argument 55 …dScalar SoundSpeed(NewtonianIdealGasContext gas, CeedScalar T) { return sqrt(gas->cp * (HeatCapaci… in SoundSpeed() argument 57 …LPER CeedScalar Mach(NewtonianIdealGasContext gas, CeedScalar T, CeedScalar u) { return u / SoundS… in Mach() argument 59 CEED_QFUNCTION_HELPER CeedScalar TotalSpecificEnthalpy(NewtonianIdealGasContext gas, const State s)… in TotalSpecificEnthalpy() argument 61 CeedScalar e_internal = gas->cv * s.Y.temperature; in TotalSpecificEnthalpy() 65 CEED_QFUNCTION_HELPER CeedScalar TotalSpecificEnthalpy_fwd(NewtonianIdealGasContext gas, const Stat… in TotalSpecificEnthalpy_fwd() argument 67 CeedScalar de_internal = gas->cv * ds.Y.temperature; in TotalSpecificEnthalpy_fwd() 71 CEED_QFUNCTION_HELPER StatePrimitive StatePrimitiveFromConservative(NewtonianIdealGasContext gas, S… in StatePrimitiveFromConservative() argument [all …]
|
| H A D | stabilization.h | 28 CEED_QFUNCTION_HELPER void StabilizationMatrix(NewtonianIdealGasContext gas, State s, CeedScalar Ta… in StabilizationMatrix() argument 37 State ds = StateFromY_fwd(gas, s, dY); in StabilizationMatrix() 38 FluxInviscid_fwd(gas, s, ds, dF); in StabilizationMatrix() 46 CEED_QFUNCTION_HELPER void Stabilization(NewtonianIdealGasContext gas, State s, CeedScalar Tau_d[3]… in Stabilization() argument 50 switch (gas->stabilization) { in Stabilization() 54 FluxInviscidStrong(gas, s, ds, strong_residual); in Stabilization() 57 FluxInviscidStrong(gas, s, ds, strong_residual); in Stabilization() 61 StabilizationMatrix(gas, s, Tau_d, strong_residual, stab); in Stabilization() 71 CEED_QFUNCTION_HELPER void Tau_diagPrim(NewtonianIdealGasContext gas, State s, const CeedScalar dXd… in Tau_diagPrim() argument 74 const CeedScalar Ctau_t = gas->Ctau_t; in Tau_diagPrim() [all …]
|
| H A D | riemann_solver.h | 101 CEED_QFUNCTION_HELPER void ComputeHLLSpeeds_Roe(NewtonianIdealGasContext gas, State left, CeedScala… in ComputeHLLSpeeds_Roe() argument 103 const CeedScalar gamma = HeatCapacityRatio(gas); in ComputeHLLSpeeds_Roe() 111 CeedScalar H_left = TotalSpecificEnthalpy(gas, left); in ComputeHLLSpeeds_Roe() 112 CeedScalar H_right = TotalSpecificEnthalpy(gas, right); in ComputeHLLSpeeds_Roe() 121 CEED_QFUNCTION_HELPER void ComputeHLLSpeeds_Roe_fwd(NewtonianIdealGasContext gas, State left, State… in ComputeHLLSpeeds_Roe_fwd() argument 124 const CeedScalar gamma = HeatCapacityRatio(gas); in ComputeHLLSpeeds_Roe_fwd() 134 CeedScalar H_left = TotalSpecificEnthalpy(gas, left); in ComputeHLLSpeeds_Roe_fwd() 135 CeedScalar H_right = TotalSpecificEnthalpy(gas, right); in ComputeHLLSpeeds_Roe_fwd() 136 CeedScalar dH_left = TotalSpecificEnthalpy_fwd(gas, left, dleft); in ComputeHLLSpeeds_Roe_fwd() 137 CeedScalar dH_right = TotalSpecificEnthalpy_fwd(gas, right, dright); in ComputeHLLSpeeds_Roe_fwd() [all …]
|
| H A D | bc_freestream.h | 183 CeedScalar(*jac_data_sur) = outflow->gas.is_implicit ? out[1] : NULL; in RiemannOutflow() 185 const NewtonianIdealGasContext gas = &outflow->gas; in RiemannOutflow() local 186 const bool is_implicit = gas->is_implicit; in RiemannOutflow() 193 const State s_int = StateFromQ(gas, qi, state_var); in RiemannOutflow() 203 State s_ext = StateFromPrimitive(gas, y_ext); in RiemannOutflow() 206 StatePhysicalGradientFromReference_Boundary(Q, i, gas, s_int, state_var, Grad_q, dXdx, grad_s); in RiemannOutflow() 210 NewtonianStress(gas, strain_rate, kmstress); in RiemannOutflow() 212 ViscousEnergyFlux(gas, s_int.Y, grad_s, stress, Fe); in RiemannOutflow() 214 StateConservative F_inviscid_normal = RiemannFlux_HLLC(gas, s_int, s_ext, normal); in RiemannOutflow() 254 const NewtonianIdealGasContext gas = &outflow->gas; in RiemannOutflow_Jacobian() local [all …]
|
| H A D | taylorgreen.h | 23 const NewtonianIdealGasContext gas = &context->gas; in ICsTaylorGreen() local 24 CeedScalar R = GasConstant(gas); in ICsTaylorGreen() 40 State s = StateFromY(gas, Y); in ICsTaylorGreen() 41 StateToQ(gas, s, q, gas->state_var); in ICsTaylorGreen()
|
| H A D | densitycurrent.h | 96 NewtonianIdealGasContext gas = &context->newtonian_ctx; in Exact_DC() local 97 const CeedScalar cp = gas->cp; in Exact_DC() 98 const CeedScalar cv = gas->cv; in Exact_DC() 100 const CeedScalar *g_vec = gas->g; in Exact_DC() 128 return StateFromY(gas, Y); in Exact_DC() 139 const NewtonianIdealGasContext gas = &context->newtonian_ctx; in ICsDC() local 145 StateToQ(gas, s, q, gas->state_var); in ICsDC()
|
| H A D | channel.h | 39 NewtonianIdealGasContext gas = &context->newtonian_ctx; in Exact_Channel() local 40 const CeedScalar cp = gas->cp; in Exact_Channel() 41 const CeedScalar mu = gas->mu; in Exact_Channel() 42 const CeedScalar k = gas->k; in Exact_Channel() 60 return StateFromY(gas, Y); in Exact_Channel() 71 const NewtonianIdealGasContext gas = &context->newtonian_ctx; in ICsChannel() local 77 StateToQ(gas, s, q, gas->state_var); in ICsChannel() 94 NewtonianIdealGasContext gas = &context->newtonian_ctx; in Channel_Inflow() local 117 State s_inside = StateFromU(gas, q_inside); in Channel_Inflow() 121 const CeedScalar e_internal = gas->cv * s_exact.Y.temperature; in Channel_Inflow()
|
| H A D | blasius.h | 108 const NewtonianIdealGasContext gas = &context->newtonian_ctx; in ICsBlasius() local 124 StateToQ(gas, s, q, gas->state_var); in ICsBlasius() 140 const NewtonianIdealGasContext gas = &context->newtonian_ctx; in Blasius_Inflow() local 144 …const CeedScalar x0 = U_infty * rho_0 / (gas->mu * 25 / Square(context->del… in Blasius_Inflow() 158 State s_int = StateFromU(gas, qi); in Blasius_Inflow() 163 s.Y = StatePrimitiveFromConservative(gas, s.U); in Blasius_Inflow() 166 s.Y = StatePrimitiveFromConservative(gas, s.U); in Blasius_Inflow() 194 const NewtonianIdealGasContext gas = &context->newtonian_ctx; in Blasius_Inflow_Jacobian() local 196 const CeedScalar Rd = GasConstant(gas); in Blasius_Inflow_Jacobian() 197 const CeedScalar gamma = HeatCapacityRatio(gas); in Blasius_Inflow_Jacobian() [all …]
|
| H A D | advection.h | 227 …calGradientFromReference_ND(CeedInt N, CeedInt Q, CeedInt i, NewtonianIdealGasContext gas, State s, in StatePhysicalGradientFromReference_ND() argument 237 grad_s[k] = StateFromQ_fwd(gas, s, dqi, state_var); in StatePhysicalGradientFromReference_ND() 240 grad_s[2] = StateFromU(gas, U); in StatePhysicalGradientFromReference_ND() 250 grad_s[k] = StateFromQ_fwd(gas, s, dqi, state_var); in StatePhysicalGradientFromReference_ND() 292 NewtonianIdealGasContext gas; in IFunction_AdvectionGeneric() local 294 gas = &gas_struct; in IFunction_AdvectionGeneric() 298 const State s = StateFromU(gas, qi); in IFunction_AdvectionGeneric() 303 …StatePhysicalGradientFromReference_ND(dim, Q, i, gas, s, STATEVAR_CONSERVATIVE, grad_q, dXdx, grad… in IFunction_AdvectionGeneric() 375 NewtonianIdealGasContext gas = &gas_struct; in MassFunction_AdvectionGeneric() local 379 const State s = StateFromU(gas, qi); in MassFunction_AdvectionGeneric() [all …]
|
| H A D | stg_shur14.h | 287 const NewtonianIdealGasContext gas = &stg_ctx->newtonian_ctx; in ICsStg() local 293 const CeedScalar rho = P0 / (GasConstant(gas) * theta0); in ICsStg() 294 const CeedScalar nu = gas->mu / rho; in ICsStg() 314 State s = StateFromY(gas, Y); in ICsStg() 315 StateToQ(gas, s, q, gas->state_var); in ICsStg() 476 const NewtonianIdealGasContext gas = &stg_ctx->newtonian_ctx; in StgShur14InflowStrongQF() local 483 const CeedScalar rho = P0 / (GasConstant(gas) * theta0); in StgShur14InflowStrongQF() 484 const CeedScalar nu = gas->mu / rho; in StgShur14InflowStrongQF() 512 State s = StateFromY(gas, Y); in StgShur14InflowStrongQF() 513 StateToQ(gas, s, q, gas->state_var); in StgShur14InflowStrongQF() [all …]
|
| H A D | bc_freestream_type.h | 20 struct NewtonianIdealGasContext_ gas; member
|
| H A D | turb_stats_types.h | 41 struct NewtonianIdealGasContext_ gas; member
|
| H A D | turb_spanstats.h | 19 NewtonianIdealGasContext gas = &context->gas; in ChildStatsCollection() local 26 const State s = StateFromQ(gas, qi, state_var); in ChildStatsCollection()
|
| H A D | differential_filter.h | 30 struct NewtonianIdealGasContext_ gas; member 40 NewtonianIdealGasContext gas = &context->gas; in DifferentialFilter_RHS() local 45 const State s = StateFromQ(gas, qi, state_var); in DifferentialFilter_RHS()
|
| H A D | newtonian_types.h | 64 struct NewtonianIdealGasContext_ gas; member
|
| H A D | newtonian.h | 41 State s = StateFromPrimitive(&context->gas, context->reference); in ICsNewtonianIG() 42 StateToQ(&context->gas, s, q, state_var); in ICsNewtonianIG()
|
| /libCEED/examples/fluids/problems/ |
| H A D | bc_freestream.c | 21 static PetscErrorCode RiemannSolverUnitTests(NewtonianIdealGasContext gas, CeedScalar rtol); 208 outflow_ctx->gas = *newtonian_ig_ctx; in OutflowBCSetup() 258 static PetscErrorCode TestRiemannHLL_fwd(NewtonianIdealGasContext gas, CeedScalar rtol_0, CeedScala… in TestRiemannHLL_fwd() argument 263 const CeedScalar p = (HeatCapacityRatio(gas) - 1) * rho * gas->cv * T; in TestRiemannHLL_fwd() 271 State left0 = StateFromY(gas, Y0_left); in TestRiemannHLL_fwd() 272 State right0 = StateFromY(gas, Y0_right); in TestRiemannHLL_fwd() 286 State dleft0 = StateFromY_fwd(gas, left0, dY_left); in TestRiemannHLL_fwd() 287 State dright0 = StateFromY_fwd(gas, right0, dY_right); in TestRiemannHLL_fwd() 289 … StateConservative dFlux_state = RiemannFlux_HLL_fwd(gas, left0, dleft0, right0, dright0, normal); in TestRiemannHLL_fwd() 303 State left1 = StateFromY(gas, Y1_left); in TestRiemannHLL_fwd() [all …]
|
| H A D | newtonian.c | 51 …eVariable state_var_A, StateVariable state_var_B, NewtonianIdealGasContext gas, const CeedScalar A… in TestState() argument 61 State state_A0 = StateFromQ(gas, A0, state_var_A); in TestState() 62 StateToQ(gas, state_A0, B0, state_var_B); in TestState() 63 State state_B0 = StateFromQ(gas, B0, state_var_B); in TestState() 64 StateToQ(gas, state_B0, A0_test, state_var_A); in TestState() 72 …eVariable state_var_A, StateVariable state_var_B, NewtonianIdealGasContext gas, const CeedScalar A… in TestState_fwd() argument 81 State state_0 = StateFromQ(gas, A0, state_var_A); in TestState_fwd() 89 State dstate_0 = StateFromQ_fwd(gas, state_0, dA, state_var_A); in TestState_fwd() 90 StateToQ_fwd(gas, state_0, dstate_0, dB, state_var_B); in TestState_fwd() 97 State state_1 = StateFromQ(gas, A1, state_var_A); in TestState_fwd() [all …]
|
| /libCEED/examples/fluids/src/ |
| H A D | differential_filter.c | 186 NewtonianIdealGasContext gas; in DifferentialFilterSetup() local 269 …dQFunctionContextGetDataRead(problem->apply_vol_ifunction.qfunction_context, CEED_MEM_HOST, &gas)); in DifferentialFilterSetup() 270 diff_filter_ctx->gas = *gas; in DifferentialFilterSetup() 271 …d(ceed, CeedQFunctionContextRestoreDataRead(problem->apply_vol_ifunction.qfunction_context, &gas)); in DifferentialFilterSetup()
|
| H A D | setuplibceed.c | 293 NewtonianIdealGasContext gas; in SetupLibceed() local 294 …dQFunctionContextGetDataRead(problem->apply_vol_ifunction.qfunction_context, CEED_MEM_HOST, &gas)); in SetupLibceed() 295 jac_data_size_vol += (gas->idl_enable ? 1 : 0); in SetupLibceed() 296 …d(ceed, CeedQFunctionContextRestoreDataRead(problem->apply_vol_ifunction.qfunction_context, &gas)); in SetupLibceed()
|
| H A D | turb_spanstats.c | 392 collect_ctx->gas = *newtonian_ig_ctx; in CreateStatisticCollectionOperator()
|
| /libCEED/examples/fluids/ |
| H A D | index.md | 6 It solves the time-dependent Navier-Stokes equations of compressible gas dynamics in a static Euler… 313 Note that this wave speed is specific to ideal gases as $\gamma$ is an ideal gas parameter; other e… 639 The domain is filled with an ideal gas at rest (zero velocity) with temperature 24.92 and pressure …
|
| /libCEED/doc/sphinx/source/ |
| H A D | releasenotes.md | 481 This example solves the time-dependent Navier-Stokes equations of compressible gas
|