| /libCEED/examples/solids/problems/ |
| H A D | mooney-rivlin.c | 15 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 D | neo-hookean.c | 15 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 D | neo-hookean.h | 28 PetscErrorCode ProcessPhysics_NH(MPI_Comm comm, Physics_NH phys, Units units);
|
| H A D | mooney-rivlin.h | 30 PetscErrorCode ProcessPhysics_MR(MPI_Comm comm, Physics_MR phys, Units units);
|
| /libCEED/examples/fluids/src/ |
| H A D | setupdm.c | 45 …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 D | setupts.c | 41 …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 D | strong_boundary_conditions.c | 16 …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 D | setuplibceed.c | 185 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 D | misc.c | 26 …if (user->phys->ics_time_label) PetscCallCeed(ceed, CeedOperatorSetContextDouble(ceed_data->op_ics… in ICs_FixMultiplicity()
|
| H A D | differential_filter.c | 33 switch (user->phys->state_var) { in DifferentialFilterCreateOperators()
|
| H A D | turb_spanstats.c | 372 switch (user->phys->state_var) { in CreateStatisticCollectionOperator()
|
| /libCEED/examples/fluids/problems/ |
| H A D | stg_shur14.h | 17 extern PetscErrorCode SetupStrongStg(DM dm, SimpleBC bc, ProblemData problem, Physics phys);
|
| H A D | channel.c | 36 if (user->phys->state_var == STATEVAR_CONSERVATIVE) { in NS_CHANNEL() 83 channel_ctx->implicit = user->phys->implicit; in NS_CHANNEL()
|
| H A D | bc_slip.c | 24 switch (user->phys->state_var) { in SlipBCSetup()
|
| H A D | gaussianwave.c | 31 switch (user->phys->state_var) { in NS_GAUSSIAN_WAVE()
|
| H A D | stg_shur14.c | 250 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 D | shocktube.c | 124 user->phys->implicit = implicit; in NS_SHOCKTUBE()
|
| H A D | eulervortex.c | 117 user->phys->implicit = implicit; in NS_EULER_VORTEX()
|
| H A D | blasius.c | 336 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 D | bc_freestream.c | 50 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 D | newtonian.c | 410 user->phys->implicit = implicit; in NS_NEWTONIAN_IG() 411 user->phys->state_var = state_var; in NS_NEWTONIAN_IG()
|
| H A D | advection.c | 249 user->phys->implicit = implicit; in NS_ADVECTION()
|
| /libCEED/examples/fluids/ |
| H A D | navierstokes.h | 178 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 D | navierstokes.c | 94 user->phys = phys_ctx; in main()
|