Home
last modified time | relevance | path

Searched refs:units (Results 1 – 19 of 19) sorted by relevance

/honee/src/
H A Dcloptions.c231 Units units = honee->units; in ProcessCommandLineOptions() local
232 *units = (struct Units_private){ in ProcessCommandLineOptions()
239 …onsScalar("-units_meter", "1 meter in scaled length units", NULL, units->meter, &units->meter, NUL… in ProcessCommandLineOptions()
240 …onsScalar("-units_second", "1 second in scaled time units", NULL, units->second, &units->second, N… in ProcessCommandLineOptions()
241 …alar("-units_kilogram", "1 kilogram in scaled mass units", NULL, units->kilogram, &units->kilogram… in ProcessCommandLineOptions()
242 …ar("-units_kelvin", "1 Kelvin in scaled temperature units", NULL, units->Kelvin, &units->Kelvin, N… in ProcessCommandLineOptions()
244 units->Pascal = units->kilogram / (units->meter * PetscSqr(units->second)); in ProcessCommandLineOptions()
245 units->Joule = units->kilogram * PetscSqr(units->meter) / PetscSqr(units->second); in ProcessCommandLineOptions()
246 units->J_per_kg_K = units->Joule / (units->kilogram * units->Kelvin); in ProcessCommandLineOptions()
247 units->m_per_squared_s = units->meter / PetscSqr(units->second); in ProcessCommandLineOptions()
[all …]
H A Dsetupdm.c66 PetscCall(DMPlexSetScale(*dm, PETSC_UNIT_LENGTH, honee->units->meter)); in CreateDM()
67 PetscCall(DMPlexSetScale(*dm, PETSC_UNIT_MASS, honee->units->kilogram)); in CreateDM()
68 PetscCall(DMPlexSetScale(*dm, PETSC_UNIT_TIME, honee->units->second)); in CreateDM()
69 PetscCall(DMPlexSetScale(*dm, PETSC_UNIT_TEMPERATURE, honee->units->Kelvin)); in CreateDM()
H A Dhonee.c31 …(PetscCalloc4(1, &honee_->app_ctx, 1, &honee_->problem_data, 1, &honee_->phys, 1, &honee_->units)); in HoneeInit()
116 PetscCall(PetscFree4(honee_->app_ctx, honee_->problem_data, honee_->phys, honee_->units)); in HoneeDestroy()
H A Ddifferential_filter.c279 Units units = honee->units; in DifferentialFilterSetup() local
280 for (int i = 0; i < 3; i++) diff_filter_ctx->width_scaling[i] *= units->meter; in DifferentialFilterSetup()
281 diff_filter_ctx->kernel_scaling *= units->meter; in DifferentialFilterSetup()
282 diff_filter_ctx->friction_length *= units->meter; in DifferentialFilterSetup()
H A Dsetupts.c247 time /= honee->units->second; // Dimensionalize time back in WriteOutput()
435 PetscCall(TSSetMaxTime(*ts, 500. * honee->units->second)); in TSSolve_NS()
438 PetscCall(TSSetTimeStep(*ts, 1.e-2 * honee->units->second)); in TSSolve_NS()
440 …PetscCall(TSAdaptSetStepLimits(adapt, 1.e-12 * honee->units->second, 1.e2 * honee->units->second)); in TSSolve_NS()
458 PetscCall(TSSetTime(*ts, app_ctx->cont_time * honee->units->second)); in TSSolve_NS()
/honee/problems/
H A Ddensitycurrent.c67 Units units = honee->units; in NS_DENSITY_CURRENT() local
69 rc = fabs(rc) * units->meter; in NS_DENSITY_CURRENT()
70 theta0 *= units->Kelvin; in NS_DENSITY_CURRENT()
71 thetaC *= units->Kelvin; in NS_DENSITY_CURRENT()
72 P0 *= units->Pascal; in NS_DENSITY_CURRENT()
73 N *= (1. / units->second); in NS_DENSITY_CURRENT()
74 for (PetscInt i = 0; i < dim; i++) center[i] *= units->meter; in NS_DENSITY_CURRENT()
H A Dbc_outflow.c120 Units units = honee->units; in OutflowBCSetup() local
125 CeedScalar pressure = reference->pressure / units->Pascal; in OutflowBCSetup()
126 CeedScalar temperature = reference->temperature / units->Kelvin; in OutflowBCSetup()
140 pressure *= units->Pascal; in OutflowBCSetup()
141 temperature *= units->Kelvin; in OutflowBCSetup()
H A Dblasius.c175 Units units = honee->units; in NS_BLASIUS() local
177 T_inf *= units->Kelvin; in NS_BLASIUS()
178 T_wall *= units->Kelvin; in NS_BLASIUS()
179 P_inf *= units->Pascal; in NS_BLASIUS()
180 U_inf *= units->meter / units->second; in NS_BLASIUS()
181 delta0 *= units->meter; in NS_BLASIUS()
H A Deulervortex.c85 Units units = honee->units; in NS_EULER_VORTEX() local
105 …for (PetscInt i = 0; i < dim; i++) center[i] = .5 * domain_size[i] / units->meter; // Redimension… in NS_EULER_VORTEX()
129 center[i] *= units->meter; in NS_EULER_VORTEX()
130 mean_velocity[i] *= (units->meter / units->second); in NS_EULER_VORTEX()
H A Dchannel.c66 Units units = honee->units; in NS_CHANNEL() local
68 theta0 *= units->Kelvin; in NS_CHANNEL()
69 P0 *= units->Pascal; in NS_CHANNEL()
70 umax *= units->meter / units->second; in NS_CHANNEL()
H A Dnewtonian.c476 Units units = honee->units; in NS_NEWTONIAN_IG() local
477 newtonian_ig_ctx->gas.cv *= units->J_per_kg_K; in NS_NEWTONIAN_IG()
478 newtonian_ig_ctx->gas.cp *= units->J_per_kg_K; in NS_NEWTONIAN_IG()
479 newtonian_ig_ctx->gas.mu *= units->Pascal * units->second; in NS_NEWTONIAN_IG()
480 newtonian_ig_ctx->gas.k *= units->W_per_m_K; in NS_NEWTONIAN_IG()
481 for (PetscInt i = 0; i < 3; i++) newtonian_ig_ctx->g[i] *= units->m_per_squared_s; in NS_NEWTONIAN_IG()
482 reference.pressure *= units->Pascal; in NS_NEWTONIAN_IG()
483 for (PetscInt i = 0; i < 3; i++) reference.velocity[i] *= units->meter / units->second; in NS_NEWTONIAN_IG()
484 reference.temperature *= units->Kelvin; in NS_NEWTONIAN_IG()
498 newtonian_ig_ctx->idl_amplitude = 1 / (idl_decay_time * units->second); in NS_NEWTONIAN_IG()
[all …]
H A Dbc_freestream.c119 Units units = honee->units; in FreestreamBCSetup() local
125 … = {.pressure = reference->pressure / units->Pascal, .velocity = {0}, .temperature = reference->te… in FreestreamBCSetup()
126 …for (int i = 0; i < 3; i++) Y_inf.velocity[i] = reference->velocity[i] * units->second / units->me… in FreestreamBCSetup()
137 Y_inf.pressure *= units->Pascal; in FreestreamBCSetup()
138 for (int i = 0; i < 3; i++) Y_inf.velocity[i] *= units->meter / units->second; in FreestreamBCSetup()
139 Y_inf.temperature *= units->Kelvin; in FreestreamBCSetup()
H A Dgaussianwave.c39 width *= honee->units->meter; in NS_GAUSSIAN_WAVE()
40 for (int i = 0; i < 3; i++) epicenter[i] *= honee->units->meter; in NS_GAUSSIAN_WAVE()
H A Dadvection.c495 Units units = honee->units; in NS_ADVECTION() local
496 E_wind *= units->Joule; in NS_ADVECTION()
497 rc = fabs(rc) * units->meter; in NS_ADVECTION()
499 wind[i] *= (units->meter / units->second); in NS_ADVECTION()
/honee/doc/
H A Druntime_options.md215 These options allow the units used during solving to be changed.
230 - 1 meter in scaled length units
234 - 1 second in scaled time units
238 - 1 kilogram in scaled mass units
242 - 1 Kelvin in scaled temperature units
H A Dtheory.md228 …erence element as $\bm u_{\bm X} = \nabla_{\bm x}\bm X \cdot \bm u$, with units of reference lengt…
236 …m{Pe}_h = \lVert \bm u \rVert h / (2 \kappa)$ where $\kappa$ is the diffusivity (units of $m^2/s$).
250 Note that $\tau$ has units of time and, in the transport-dominated limit, is proportional to elemen…
/honee/src/spanstats/
H A Dcflpe.c219 CeedScalar second = honee->units->second; in TSMonitor_SpanwiseStatisticsCflPe()
H A Dturbulence.c238 CeedScalar second = honee->units->second; in TSMonitor_SpanwiseStatisticsTurbulence()
/honee/include/
H A Dnavierstokes.h159 Units units; member