| /libCEED/examples/solids/problems/ |
| H A D | neo-hookean.c | 14 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 D | mooney-rivlin.c | 14 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 D | neo-hookean.h | 24 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 D | mooney-rivlin.h | 26 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 D | densitycurrent.c | 75 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 D | channel.c | 55 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 D | newtonian.c | 111 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 D | gaussianwave.c | 59 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 D | shocktube.c | 101 user->units->meter = meter; in NS_SHOCKTUBE() 102 user->units->second = second; in NS_SHOCKTUBE()
|
| H A D | advection.c | 218 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 D | eulervortex.c | 102 user->units->meter = meter; in NS_EULER_VORTEX() 103 user->units->second = second; in NS_EULER_VORTEX()
|
| H A D | blasius.c | 303 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 D | bc_freestream.c | 30 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 D | navierstokes.c | 89 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 D | README.md | 320 - 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 D | navierstokes.h | 176 Units units; member
|
| H A D | index.md | 224 …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 D | README.md | 179 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 D | elasticity.c | 48 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 D | setupts.c | 233 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 D | differential_filter.c | 263 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 D | paper.md | 70 …son] so sparse matrix operations cannot achieve more than about 2% utilization of arithmetic units.
|