Lines Matching refs:problem

84 PetscErrorCode NS_ADVECTION(ProblemData problem, DM dm, void *ctx, SimpleBC bc) {  in NS_ADVECTION()  argument
109 problem->dim = 2; in NS_ADVECTION()
110 problem->ics.qfunction = ICsAdvection2d; in NS_ADVECTION()
111 problem->ics.qfunction_loc = ICsAdvection2d_loc; in NS_ADVECTION()
112 problem->apply_vol_rhs.qfunction = RHS_Advection2d; in NS_ADVECTION()
113 problem->apply_vol_rhs.qfunction_loc = RHS_Advection2d_loc; in NS_ADVECTION()
114 problem->apply_vol_ifunction.qfunction = IFunction_Advection2d; in NS_ADVECTION()
115 problem->apply_vol_ifunction.qfunction_loc = IFunction_Advection2d_loc; in NS_ADVECTION()
116 problem->apply_inflow.qfunction = Advection2d_InOutFlow; in NS_ADVECTION()
117 problem->apply_inflow.qfunction_loc = Advection2d_InOutFlow_loc; in NS_ADVECTION()
118 problem->compute_exact_solution_error = PETSC_TRUE; in NS_ADVECTION()
119 problem->print_info = PRINT_ADVECTION; in NS_ADVECTION()
122 problem->dim = 3; in NS_ADVECTION()
123 problem->ics.qfunction = ICsAdvection; in NS_ADVECTION()
124 problem->ics.qfunction_loc = ICsAdvection_loc; in NS_ADVECTION()
125 problem->apply_vol_rhs.qfunction = RHS_Advection; in NS_ADVECTION()
126 problem->apply_vol_rhs.qfunction_loc = RHS_Advection_loc; in NS_ADVECTION()
127 problem->apply_vol_ifunction.qfunction = IFunction_Advection; in NS_ADVECTION()
128 problem->apply_vol_ifunction.qfunction_loc = IFunction_Advection_loc; in NS_ADVECTION()
129 problem->apply_inflow.qfunction = Advection_InOutFlow; in NS_ADVECTION()
130 problem->apply_inflow.qfunction_loc = Advection_InOutFlow_loc; in NS_ADVECTION()
131 problem->compute_exact_solution_error = PETSC_FALSE; in NS_ADVECTION()
132 problem->print_info = PRINT_ADVECTION; in NS_ADVECTION()
149 for (PetscInt i = 0; i < problem->dim; i++) domain_size[i] = domain_max[i] - domain_min[i]; in NS_ADVECTION()
168 PetscInt n = problem->dim; in NS_ADVECTION()
178 bubble_continuity_type = problem->dim == 3 ? BUBBLE_CONTINUITY_SMOOTH : BUBBLE_CONTINUITY_COSINE; in NS_ADVECTION()
210 if (stab == STAB_SUPG) problem->create_mass_operator = CreateKSPMassOperator_AdvectionStabilized; in NS_ADVECTION()
229 for (PetscInt i = 0; i < problem->dim; i++) { in NS_ADVECTION()
233 problem->dm_scale = meter; in NS_ADVECTION()
239 setup_context->lz = problem->dim == 3 ? domain_size[2] : 0.; in NS_ADVECTION()
242 setup_context->wind[2] = problem->dim == 3 ? wind[2] : 0.; in NS_ADVECTION()
260 PetscCallCeed(ceed, CeedQFunctionContextCreate(user->ceed, &problem->ics.qfunction_context)); in NS_ADVECTION()
262 …CeedQFunctionContextSetData(problem->ics.qfunction_context, CEED_MEM_HOST, CEED_USE_POINTER, sizeo… in NS_ADVECTION()
263 …PetscCallCeed(ceed, CeedQFunctionContextSetDataDestroy(problem->ics.qfunction_context, CEED_MEM_HO… in NS_ADVECTION()
270 problem->apply_vol_rhs.qfunction_context = advection_context; in NS_ADVECTION()
271 …PetscCallCeed(ceed, CeedQFunctionContextReferenceCopy(advection_context, &problem->apply_vol_ifunc… in NS_ADVECTION()
272 …PetscCallCeed(ceed, CeedQFunctionContextReferenceCopy(advection_context, &problem->apply_inflow.qf… in NS_ADVECTION()
276 PetscErrorCode PRINT_ADVECTION(User user, ProblemData problem, AppCtx app_ctx) { in PRINT_ADVECTION() argument
283 …PetscCallCeed(ceed, CeedQFunctionContextGetData(problem->ics.qfunction_context, CEED_MEM_HOST, &se… in PRINT_ADVECTION()
284 …PetscCallCeed(ceed, CeedQFunctionContextGetData(problem->apply_vol_rhs.qfunction_context, CEED_MEM… in PRINT_ADVECTION()
296 switch (problem->dim) { in PRINT_ADVECTION()
306 PetscCallCeed(ceed, CeedQFunctionContextRestoreData(problem->ics.qfunction_context, &setup_ctx)); in PRINT_ADVECTION()
307 …PetscCallCeed(ceed, CeedQFunctionContextRestoreData(problem->apply_vol_rhs.qfunction_context, &adv… in PRINT_ADVECTION()