Home
last modified time | relevance | path

Searched refs:phys (Results 1 – 24 of 24) sorted by relevance

/libCEED/examples/solids/problems/
H A Dmooney-rivlin.c15 Physics_MR phys; in PhysicsContext_MR() local
20 PetscCall(PetscMalloc1(1, &phys)); in PhysicsContext_MR()
21 PetscCall(ProcessPhysics_MR(comm, phys, *units)); in PhysicsContext_MR()
23 CeedQFunctionContextSetData(*ctx, CEED_MEM_HOST, CEED_COPY_VALUES, sizeof(*phys), phys); in PhysicsContext_MR()
24 PetscCall(PetscFree(phys)); in PhysicsContext_MR()
33 Physics_MR phys, phys_smoother; in PhysicsSmootherContext_MR() local
48 CeedQFunctionContextGetData(ctx, CEED_MEM_HOST, &phys); in PhysicsSmootherContext_MR()
50 PetscCall(PetscMemcpy(phys_smoother, phys, sizeof(*phys))); in PhysicsSmootherContext_MR()
51 CeedQFunctionContextRestoreData(ctx, &phys); in PhysicsSmootherContext_MR()
65 PetscErrorCode ProcessPhysics_MR(MPI_Comm comm, Physics_MR phys, Units units) { in ProcessPhysics_MR() argument
[all …]
H A Dneo-hookean.c15 Physics_NH phys; in PhysicsContext_NH() local
20 PetscCall(PetscMalloc1(1, &phys)); in PhysicsContext_NH()
21 PetscCall(ProcessPhysics_NH(comm, phys, *units)); in PhysicsContext_NH()
23 CeedQFunctionContextSetData(*ctx, CEED_MEM_HOST, CEED_COPY_VALUES, sizeof(*phys), phys); in PhysicsContext_NH()
24 PetscCall(PetscFree(phys)); in PhysicsContext_NH()
33 Physics_NH phys, phys_smoother; in PhysicsSmootherContext_NH() local
45 CeedQFunctionContextGetData(ctx, CEED_MEM_HOST, &phys); in PhysicsSmootherContext_NH()
47 PetscCall(PetscMemcpy(phys_smoother, phys, sizeof(*phys))); in PhysicsSmootherContext_NH()
48 CeedQFunctionContextRestoreData(ctx, &phys); in PhysicsSmootherContext_NH()
62 PetscErrorCode ProcessPhysics_NH(MPI_Comm comm, Physics_NH phys, Units units) { in ProcessPhysics_NH() argument
[all …]
H A Dneo-hookean.h28 PetscErrorCode ProcessPhysics_NH(MPI_Comm comm, Physics_NH phys, Units units);
H A Dmooney-rivlin.h30 PetscErrorCode ProcessPhysics_MR(MPI_Comm comm, Physics_MR phys, Units units);
/libCEED/examples/fluids/src/
H A Dsetupdm.c45 …SetUpDM(DM dm, ProblemData problem, PetscInt degree, PetscInt q_extra, SimpleBC bc, Physics phys) { in SetUpDM() argument
72 if (use_strongstg) PetscCall(SetupStrongStg(dm, bc, problem, phys)); in SetUpDM()
82 switch (phys->state_var) { in SetUpDM()
111 PetscErrorCode VizRefineDM(DM dm, User user, ProblemData problem, SimpleBC bc, Physics phys) { in VizRefineDM() argument
130 PetscCall(SetUpDM(dm_hierarchy[i + 1], problem, d, q_order, bc, phys)); in VizRefineDM()
H A Dsetupts.c41 …if (user->phys->solution_time_label) PetscCallCeed(ceed, CeedOperatorSetContextDouble(user->op_rhs… in RHS_NS()
43 …if (user->phys->timestep_size_label) PetscCallCeed(ceed, CeedOperatorSetContextDouble(user->op_rhs… in RHS_NS()
116 …if (user->phys->solution_time_label) PetscCallCeed(ceed, CeedOperatorSetContextDouble(user->op_ifu… in IFunction_NS()
118 …if (user->phys->timestep_size_label) PetscCallCeed(ceed, CeedOperatorSetContextDouble(user->op_ifu… in IFunction_NS()
297 PetscErrorCode TSSolve_NS(DM dm, User user, AppCtx app_ctx, Physics phys, ProblemData problem, Vec … in TSSolve_NS() argument
306 if (phys->implicit) { in TSSolve_NS()
372 if (app_ctx->test_type == TESTTYPE_NONE) PetscCall(PrintRunInfo(user, user->phys, problem, *ts)); in TSSolve_NS()
H A Dstrong_boundary_conditions.c16 …eed, CeedData ceed_data, DM dm, ProblemData problem, SimpleBC bc, Physics phys, CeedOperator op_st… in SetupStrongSTG_Ceed() argument
125 …PetscCallCeed(ceed, CeedOperatorGetContextFieldLabel(op_strong_bc, "solution time", &phys->stg_sol… in SetupStrongSTG_Ceed()
142 if (user->phys->stg_solution_time_label) { in DMPlexInsertBoundaryValues_StrongBCCeed()
143 …PetscCallCeed(user->ceed, CeedOperatorSetContextDouble(user->op_strong_bc_ctx->op, user->phys->stg… in DMPlexInsertBoundaryValues_StrongBCCeed()
177 PetscCall(SetupStrongSTG_Ceed(ceed, ceed_data, dm, problem, bc, user->phys, op_strong_bc)); in SetupStrongBC_Ceed()
H A Dsetuplibceed.c185 const CeedInt jac_data_size_sur = user->phys->implicit ? problem->jac_data_size_sur : 0; in AddBCSubOperators()
353 …PetscCallCeed(ceed, CeedOperatorGetContextFieldLabel(op_ics, "evaluation time", &user->phys->ics_t… in SetupLibceed()
440 if (!user->phys->implicit) { // RHS in SetupLibceed()
450 …PetscCallCeed(ceed, CeedOperatorGetContextFieldLabel(op_rhs, "solution time", &user->phys->solutio… in SetupLibceed()
451 …PetscCallCeed(ceed, CeedOperatorGetContextFieldLabel(op_rhs, "timestep size", &user->phys->timeste… in SetupLibceed()
468 …dOperatorGetContextFieldLabel(user->op_ifunction, "solution time", &user->phys->solution_time_labe… in SetupLibceed()
469 …dOperatorGetContextFieldLabel(user->op_ifunction, "timestep size", &user->phys->timestep_size_labe… in SetupLibceed()
H A Dmisc.c26 …if (user->phys->ics_time_label) PetscCallCeed(ceed, CeedOperatorSetContextDouble(ceed_data->op_ics… in ICs_FixMultiplicity()
H A Ddifferential_filter.c33 switch (user->phys->state_var) { in DifferentialFilterCreateOperators()
H A Dturb_spanstats.c372 switch (user->phys->state_var) { in CreateStatisticCollectionOperator()
/libCEED/examples/fluids/problems/
H A Dstg_shur14.h17 extern PetscErrorCode SetupStrongStg(DM dm, SimpleBC bc, ProblemData problem, Physics phys);
H A Dchannel.c36 if (user->phys->state_var == STATEVAR_CONSERVATIVE) { in NS_CHANNEL()
83 channel_ctx->implicit = user->phys->implicit; in NS_CHANNEL()
H A Dbc_slip.c24 switch (user->phys->state_var) { in SlipBCSetup()
H A Dgaussianwave.c31 switch (user->phys->state_var) { in NS_GAUSSIAN_WAVE()
H A Dstg_shur14.c250 global_stg_ctx->is_implicit = user->phys->implicit; in SetupStg()
304 PetscErrorCode SetupStrongStg(DM dm, SimpleBC bc, ProblemData problem, Physics phys) { in SetupStrongStg() argument
309 switch (phys->state_var) { in SetupStrongStg()
H A Dshocktube.c124 user->phys->implicit = implicit; in NS_SHOCKTUBE()
H A Deulervortex.c117 user->phys->implicit = implicit; in NS_EULER_VORTEX()
H A Dblasius.c336 blasius_ctx->implicit = user->phys->implicit; in NS_BLASIUS()
363 …PetscCheck((user->phys->state_var == STATEVAR_CONSERVATIVE) || (user->app_ctx->test_type == TESTTY… in NS_BLASIUS()
H A Dbc_freestream.c50 switch (user->phys->state_var) { in FreestreamBCSetup()
163 switch (user->phys->state_var) { in OutflowBCSetup()
185 switch (user->phys->state_var) { in OutflowBCSetup()
H A Dnewtonian.c410 user->phys->implicit = implicit; in NS_NEWTONIAN_IG()
411 user->phys->state_var = state_var; in NS_NEWTONIAN_IG()
H A Dadvection.c249 user->phys->implicit = implicit; in NS_ADVECTION()
/libCEED/examples/fluids/
H A Dnavierstokes.h178 Physics phys; member
313 PetscErrorCode TSSolve_NS(DM dm, User user, AppCtx app_ctx, Physics phys, ProblemData problem, Vec …
325 … SetUpDM(DM dm, ProblemData problem, PetscInt degree, PetscInt q_extra, SimpleBC bc, Physics phys);
333 PetscErrorCode VizRefineDM(DM dm, User user, ProblemData problem, SimpleBC bc, Physics phys);
H A Dnavierstokes.c94 user->phys = phys_ctx; in main()