Home
last modified time | relevance | path

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

/libCEED/examples/solids/problems/
H A Dneo-hookean.c14 PetscErrorCode PhysicsContext_NH(MPI_Comm comm, Ceed ceed, Units *units, CeedQFunctionContext *ctx)… in PhysicsContext_NH() argument
19 PetscCall(PetscMalloc1(1, units)); in PhysicsContext_NH()
21 PetscCall(ProcessPhysics_NH(comm, phys, *units)); in PhysicsContext_NH()
62 PetscErrorCode ProcessPhysics_NH(MPI_Comm comm, Physics_NH phys, Units units) { in ProcessPhysics_NH() argument
67 units->meter = 1; // 1 meter in scaled length units in ProcessPhysics_NH()
68 units->second = 1; // 1 second in scaled time units in ProcessPhysics_NH()
69 units->kilogram = 1; // 1 kilogram in scaled mass units in ProcessPhysics_NH()
79 …onsScalar("-units_meter", "1 meter in scaled length units", NULL, units->meter, &units->meter, NUL… in ProcessPhysics_NH()
80 units->meter = fabs(units->meter); in ProcessPhysics_NH()
82 …onsScalar("-units_second", "1 second in scaled time units", NULL, units->second, &units->second, N… in ProcessPhysics_NH()
[all …]
H A Dmooney-rivlin.c14 PetscErrorCode PhysicsContext_MR(MPI_Comm comm, Ceed ceed, Units *units, CeedQFunctionContext *ctx)… in PhysicsContext_MR() argument
19 PetscCall(PetscMalloc1(1, units)); in PhysicsContext_MR()
21 PetscCall(ProcessPhysics_MR(comm, phys, *units)); in PhysicsContext_MR()
65 PetscErrorCode ProcessPhysics_MR(MPI_Comm comm, Physics_MR phys, Units units) { in ProcessPhysics_MR() argument
70 units->meter = 1; // 1 meter in scaled length units in ProcessPhysics_MR()
71 units->second = 1; // 1 second in scaled time units in ProcessPhysics_MR()
72 units->kilogram = 1; // 1 kilogram in scaled mass units in ProcessPhysics_MR()
88 …onsScalar("-units_meter", "1 meter in scaled length units", NULL, units->meter, &units->meter, NUL… in ProcessPhysics_MR()
89 units->meter = fabs(units->meter); in ProcessPhysics_MR()
91 …onsScalar("-units_second", "1 second in scaled time units", NULL, units->second, &units->second, N… in ProcessPhysics_MR()
[all …]
H A Dneo-hookean.h24 PetscErrorCode PhysicsContext_NH(MPI_Comm comm, Ceed ceed, Units *units, CeedQFunctionContext *ctx);
28 PetscErrorCode ProcessPhysics_NH(MPI_Comm comm, Physics_NH phys, Units units);
H A Dmooney-rivlin.h26 PetscErrorCode PhysicsContext_MR(MPI_Comm comm, Ceed ceed, Units *units, CeedQFunctionContext *ctx);
30 PetscErrorCode ProcessPhysics_MR(MPI_Comm comm, Physics_MR phys, Units units);
/libCEED/examples/fluids/problems/
H A Ddensitycurrent.c75 PetscScalar meter = user->units->meter; in NS_DENSITY_CURRENT()
76 PetscScalar second = user->units->second; in NS_DENSITY_CURRENT()
77 PetscScalar Kelvin = user->units->Kelvin; in NS_DENSITY_CURRENT()
78 PetscScalar Pascal = user->units->Pascal; in NS_DENSITY_CURRENT()
H A Dchannel.c55 PetscScalar meter = user->units->meter; in NS_CHANNEL()
56 PetscScalar second = user->units->second; in NS_CHANNEL()
57 PetscScalar Kelvin = user->units->Kelvin; in NS_CHANNEL()
58 PetscScalar Pascal = user->units->Pascal; in NS_CHANNEL()
H A Dnewtonian.c111 Units units = user->units; in UnitTests_Newtonian() local
112 const CeedScalar kg = units->kilogram, m = units->meter, sec = units->second, K = units->Kelvin; in UnitTests_Newtonian()
385 user->units->meter = meter; in NS_NEWTONIAN_IG()
386 user->units->kilogram = kilogram; in NS_NEWTONIAN_IG()
387 user->units->second = second; in NS_NEWTONIAN_IG()
388 user->units->Kelvin = Kelvin; in NS_NEWTONIAN_IG()
389 user->units->Pascal = Pascal; in NS_NEWTONIAN_IG()
390 user->units->J_per_kg_K = J_per_kg_K; in NS_NEWTONIAN_IG()
391 user->units->m_per_squared_s = m_per_squared_s; in NS_NEWTONIAN_IG()
392 user->units->W_per_m_K = W_per_m_K; in NS_NEWTONIAN_IG()
H A Dgaussianwave.c59 width *= user->units->meter; in NS_GAUSSIAN_WAVE()
60 for (int i = 0; i < 3; i++) epicenter[i] *= user->units->meter; in NS_GAUSSIAN_WAVE()
H A Dshocktube.c101 user->units->meter = meter; in NS_SHOCKTUBE()
102 user->units->second = second; in NS_SHOCKTUBE()
H A Dadvection.c218 user->units->meter = meter; in NS_ADVECTION()
219 user->units->kilogram = kilogram; in NS_ADVECTION()
220 user->units->second = second; in NS_ADVECTION()
221 user->units->Joule = Joule; in NS_ADVECTION()
H A Deulervortex.c102 user->units->meter = meter; in NS_EULER_VORTEX()
103 user->units->second = second; in NS_EULER_VORTEX()
H A Dblasius.c303 PetscScalar meter = user->units->meter; in NS_BLASIUS()
304 PetscScalar second = user->units->second; in NS_BLASIUS()
305 PetscScalar Kelvin = user->units->Kelvin; in NS_BLASIUS()
306 PetscScalar Pascal = user->units->Pascal; in NS_BLASIUS()
H A Dbc_freestream.c30 PetscScalar meter = user->units->meter; in FreestreamBCSetup()
31 PetscScalar second = user->units->second; in FreestreamBCSetup()
32 PetscScalar Kelvin = user->units->Kelvin; in FreestreamBCSetup()
33 PetscScalar Pascal = user->units->Pascal; in FreestreamBCSetup()
139 const PetscScalar Kelvin = user->units->Kelvin; in OutflowBCSetup()
140 const PetscScalar Pascal = user->units->Pascal; in OutflowBCSetup()
/libCEED/examples/fluids/
H A Dnavierstokes.c89 Units units; in main() local
90 PetscCall(PetscCalloc1(1, &units)); in main()
93 user->units = units; in main()
339 PetscCall(PetscFree(units)); in main()
H A DREADME.md320 - 1 meter in scaled length units
325 - 1 second in scaled time units
330 - 1 kilogram in scaled mass units
440 - 1 meter in scaled length units
445 - 1 second in scaled time units
484 - 1 meter in scaled length units
489 - 1 second in scaled time units
523 - 1 meter in scaled length units
528 - 1 second in scaled time units
533 - 1 kilogram in scaled mass units
[all …]
H A Dnavierstokes.h176 Units units; member
H A Dindex.md224 …erence element as $\bm u_{\bm X} = \nabla_{\bm x}\bm X \cdot \bm u$, with units of reference lengt…
232 …m{Pe}_h = \lVert \bm u \rVert h / (2 \kappa)$ where $\kappa$ is the diffusivity (units of $m^2/s$).
246 Note that $\tau$ has units of time and, in the transport-dominated limit, is proportional to elemen…
/libCEED/examples/solids/
H A DREADME.md179 One can nondimensionalize the model by choosing an alternate system of units, such that displacemen…
189 - 1 meter in scaled length units
193 - 1 second in scaled time units
197 - 1 kilogram in scaled mass units
203 :::{list-table} Characteristic units for metals
207 - Typical value in SI units
219 One can choose units of displacement independently (e.g., {code}`-units_meter 100` to measure displ…
H A Delasticity.c48 Units units; // Contains units scaling in main() local
105 PetscCall((*SetupPhysics)(comm, ceed, &units, &ctx_phys)); in main()
874 PetscCall(PetscFree(units)); in main()
/libCEED/examples/fluids/src/
H A Dsetupts.c233 time /= user->units->second; // Dimensionalize time back in WriteOutput()
322 PetscCall(TSSetMaxTime(*ts, 500. * user->units->second)); in TSSolve_NS()
325 PetscCall(TSSetTimeStep(*ts, 1.e-2 * user->units->second)); in TSSolve_NS()
327 PetscCall(TSAdaptSetStepLimits(adapt, 1.e-12 * user->units->second, 1.e2 * user->units->second)); in TSSolve_NS()
355 PetscCall(TSSetTime(*ts, app_ctx->cont_time * user->units->second)); in TSSolve_NS()
366 CeedScalar previous_time = app_ctx->cont_time * user->units->second; in TSSolve_NS()
H A Ddifferential_filter.c263 Units units = user->units; in DifferentialFilterSetup() local
264 for (int i = 0; i < 3; i++) diff_filter_ctx->width_scaling[i] *= units->meter; in DifferentialFilterSetup()
265 diff_filter_ctx->kernel_scaling *= units->meter; in DifferentialFilterSetup()
266 diff_filter_ctx->friction_length *= units->meter; in DifferentialFilterSetup()
/libCEED/doc/papers/joss/
H A Dpaper.md70 …son] so sparse matrix operations cannot achieve more than about 2% utilization of arithmetic units.