Lines Matching refs:honee
11 typedef PetscErrorCode (*SgsDDNodalStressEval)(Honee honee, Vec Q_loc, Vec VelocityGradient, Vec SG…
98 static PetscErrorCode SgsDDNodalStressEval_Fused(Honee honee, Vec Q_loc, Vec VelocityGradient, Vec … in SgsDDNodalStressEval_Fused() argument
103 PetscCall(HoneeGetContainer(honee, SGS_DD_DATA_KEY, &sgs_dd_data)); in SgsDDNodalStressEval_Fused()
104 PetscCall(VecPetscToCeed(Q_loc, &q_mem_type, honee->q_ceed)); // q_ceed is an implicit input in SgsDDNodalStressEval_Fused()
108 PetscCall(VecCeedToPetsc(honee->q_ceed, q_mem_type, Q_loc)); in SgsDDNodalStressEval_Fused()
113 static PetscErrorCode SgsDDSetupNodalEvaluation_Fused(Ceed ceed, Honee honee, SgsDDSetupData sgs_dd… in SgsDDSetupNodalEvaluation_Fused() argument
126 …PetscCall(DMPlexCeedElemRestrictionCreate(ceed, honee->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE,… in SgsDDSetupNodalEvaluation_Fused()
127 PetscCall(DMGetCoordinateNumComps(honee->dm, &num_comp_x)); in SgsDDSetupNodalEvaluation_Fused()
130 PetscCall(HoneeGetContainer(honee, SGS_DD_DATA_KEY, &sgs_dd_data)); in SgsDDSetupNodalEvaluation_Fused()
131 PetscCall(HoneeGetContainer(honee, GRAD_VELO_PROJ_KEY, &grad_velo_proj)); in SgsDDSetupNodalEvaluation_Fused()
139 …PetscCall(DMPlexCeedCoordinateCreateField(ceed, honee->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE,… in SgsDDSetupNodalEvaluation_Fused()
147 switch (honee->phys->state_var) { in SgsDDSetupNodalEvaluation_Fused()
161 …PetscCall(DMPlexCeedBasisCreate(ceed, honee->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, 0, 0, &ba… in SgsDDSetupNodalEvaluation_Fused()
173 …ed(ceed, CeedOperatorSetField(op_sgs_dd_nodal, "q", elem_restr_q, CEED_BASIS_NONE, honee->q_ceed)); in SgsDDSetupNodalEvaluation_Fused()
289 PetscErrorCode SgsDDNodalStressEval_Sequential(Honee honee, Vec Q_loc, Vec VelocityGradient, Vec SG… in SgsDDNodalStressEval_Sequential() argument
295 PetscCall(HoneeGetContainer(honee, SGS_DD_DATA_KEY, &sgs_dd_data)); in SgsDDNodalStressEval_Sequential()
298 PetscCall(VecPetscToCeed(Q_loc, &q_mem_type, honee->q_ceed)); // q_ceed is an implicit input in SgsDDNodalStressEval_Sequential()
304 PetscCall(VecCeedToPetsc(honee->q_ceed, q_mem_type, Q_loc)); in SgsDDNodalStressEval_Sequential()
311 static PetscErrorCode SgsDDSetupNodalEvaluation_Sequential(Ceed ceed, Honee honee, SgsDDSetupData s… in SgsDDSetupNodalEvaluation_Sequential() argument
322 PetscCall(HoneeGetContainer(honee, SGS_DD_DATA_KEY, &sgs_dd_data)); in SgsDDSetupNodalEvaluation_Sequential()
366 PetscCall(DMGetCoordinateNumComps(honee->dm, &num_comp_x)); in SgsDDSetupNodalEvaluation_Sequential()
367 PetscCall(DMGetFieldNumComps(honee->dm, 0, &num_comp_q)); in SgsDDSetupNodalEvaluation_Sequential()
369 PetscCall(HoneeGetContainer(honee, GRAD_VELO_PROJ_KEY, &grad_velo_proj)); in SgsDDSetupNodalEvaluation_Sequential()
378 …PetscCall(DMPlexCeedElemRestrictionCreate(ceed, honee->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE,… in SgsDDSetupNodalEvaluation_Sequential()
397 switch (honee->phys->state_var) { in SgsDDSetupNodalEvaluation_Sequential()
421 …d(ceed, CeedOperatorSetField(op_sgs_dd_inputs, "q", elem_restr_q, CEED_BASIS_NONE, honee->q_ceed)); in SgsDDSetupNodalEvaluation_Sequential()
490 static PetscErrorCode SgsSetupNodalIFunction(Ceed ceed, Honee honee, SgsDDSetupData sgs_dd_setup_da… in SgsSetupNodalIFunction() argument
501 PetscCall(HoneeGetContainer(honee, SGS_DD_DATA_KEY, &sgs_dd_data)); in SgsSetupNodalIFunction()
502 PetscCall(DMGetDimension(honee->dm, &dim)); in SgsSetupNodalIFunction()
503 …PetscCall(DMPlexCeedElemRestrictionCreate(ceed, honee->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE,… in SgsSetupNodalIFunction()
504 PetscCall(DMGetFieldNumComps(honee->dm, 0, &num_comp_q)); in SgsSetupNodalIFunction()
505 PetscCall(DMGetCoordinateNumComps(honee->dm, &num_comp_x)); in SgsSetupNodalIFunction()
510 …PetscCall(DMPlexCeedBasisCreate(ceed, honee->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, 0, 0, &ba… in SgsSetupNodalIFunction()
515 switch (honee->phys->state_var) { in SgsSetupNodalIFunction()
539 …PetscCall(OperatorApplyContextCreate(honee->dm, honee->dm, ceed, op_sgs_apply, honee->q_ceed, hone… in SgsSetupNodalIFunction()
553 PetscErrorCode SgsDDApplyIFunction(Honee honee, const Vec Q_loc, Vec G_loc) { in SgsDDApplyIFunction() argument
561 PetscCall(HoneeGetContainer(honee, SGS_DD_DATA_KEY, &sgs_dd_data)); in SgsDDApplyIFunction()
562 PetscCall(HoneeGetContainer(honee, GRAD_VELO_PROJ_KEY, &grad_velo_proj)); in SgsDDApplyIFunction()
568 PetscCall(sgs_dd_data->sgs_nodal_eval(honee, Q_loc, VelocityGradient, SGSNodal_loc)); in SgsDDApplyIFunction()
644 PetscErrorCode SgsDDSetup(Ceed ceed, Honee honee, ProblemData problem) { in SgsDDSetup() argument
647 MPI_Comm comm = honee->comm; in SgsDDSetup()
659 …PetscCall(DMPlexCeedElemRestrictionCreate(ceed, honee->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE,… in SgsDDSetup()
660 …PetscCall(DMPlexCeedBasisCreate(ceed, honee->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, 0, 0, &ba… in SgsDDSetup()
662 …PetscCall(VelocityGradientProjectionSetup(ceed, honee, problem, honee->phys->state_var, elem_restr… in SgsDDSetup()
666 …PetscCall(HoneeSetContainer(honee, GRAD_VELO_PROJ_KEY, grad_velo_proj, (PetscCtxDestroyFn *)NodalP… in SgsDDSetup()
671 …PetscCall(HoneeSetContainer(honee, SGS_DD_DATA_KEY, sgs_dd_data, (PetscCtxDestroyFn *)SgsDDDataDes… in SgsDDSetup()
698 …PetscCall(SgsDDCreateDM(honee->dm, &sgs_dd_data->dm_sgs, honee->app_ctx->degree, honee->app_ctx->q… in SgsDDSetup()
703 PetscCallCeed(ceed, CeedQFunctionContextCreate(honee->ceed, &sgs_dd_setup_data->sgsdd_qfctx)); in SgsDDSetup()
711 …PetscCall(GridAnisotropyTensorProjectionSetupApply(ceed, honee, &sgs_dd_setup_data->elem_restr_gri… in SgsDDSetup()
716 PetscCall(SgsDDSetupNodalEvaluation_Fused(ceed, honee, sgs_dd_setup_data)); in SgsDDSetup()
720 PetscCall(SgsDDSetupNodalEvaluation_Sequential(ceed, honee, sgs_dd_setup_data)); in SgsDDSetup()
725 PetscCall(SgsSetupNodalIFunction(ceed, honee, sgs_dd_setup_data)); in SgsDDSetup()