Contains the adjoint_scalar_scheme_t type.
|
subroutine | adjoint_scalar_scheme_init (this, msh, c_xh, gs_xh, params_adjoint, params_primal, scheme, user, rho) |
| Initialize all related components of the current scheme.
|
|
subroutine | adjoint_scalar_scheme_free (this) |
| Deallocate a scalar formulation.
|
|
subroutine | adjoint_scalar_scheme_validate (this) |
| Validate that all fields, solvers etc necessary for performing time-stepping are defined.
|
|
subroutine | adjoint_scalar_scheme_solver_factory (ksp, n, solver, max_iter, abstol, monitor) |
| Initialize a linear solver.
|
|
subroutine | adjoint_scalar_scheme_precon_factory (pc, ksp, coef, dof, gs, bclst, pctype, pcparams) |
| Initialize a Krylov preconditioner.
|
|
subroutine | adjoint_scalar_scheme_update_material_properties (t, tstep, this) |
| Call user material properties routine and update the values of lambda if necessary.
|
|
subroutine | adjoint_scalar_scheme_set_material_properties (this, params_primal, user) |
| Set lamdba and cp.
|
|
◆ adjoint_scalar_scheme_free()
◆ adjoint_scalar_scheme_init()
subroutine adjoint_scalar_scheme::adjoint_scalar_scheme_init |
( |
class(adjoint_scalar_scheme_t), intent(inout), target |
this, |
|
|
type(mesh_t), intent(in), target |
msh, |
|
|
type(coef_t), intent(in), target |
c_xh, |
|
|
type(gs_t), intent(inout), target |
gs_xh, |
|
|
type(json_file), intent(inout), target |
params_adjoint, |
|
|
type(json_file), intent(inout), target |
params_primal, |
|
|
character(len=*), intent(in) |
scheme, |
|
|
type(user_t), intent(in), target |
user, |
|
|
type(field_t), intent(in), target |
rho |
|
) |
| |
- Parameters
-
[in,out] | this | The object. |
| msh | The mesh. |
| c_Xh | The coefficients. |
| gs_Xh | The gather-scatter. |
| params_adjoint | The parameter dictionary in json for the adjoint. |
| params_primal | The parameter dictionary in json for the primal. |
| scheme | The name of the scalar scheme. |
| user | Type with user-defined procedures. |
| rho | The density of the fluid. |
Definition at line 252 of file adjoint_scalar_scheme.f90.
◆ adjoint_scalar_scheme_precon_factory()
subroutine adjoint_scalar_scheme::adjoint_scalar_scheme_precon_factory |
( |
class(pc_t), intent(inout), allocatable, target |
pc, |
|
|
class(ksp_t), intent(inout), target |
ksp, |
|
|
type(coef_t), intent(in), target |
coef, |
|
|
type(dofmap_t), intent(in), target |
dof, |
|
|
type(gs_t), intent(inout), target |
gs, |
|
|
type(bc_list_t), intent(inout), target |
bclst, |
|
|
character(len=*) |
pctype, |
|
|
type(json_file), intent(inout) |
pcparams |
|
) |
| |
◆ adjoint_scalar_scheme_set_material_properties()
subroutine adjoint_scalar_scheme::adjoint_scalar_scheme_set_material_properties |
( |
class(adjoint_scalar_scheme_t), intent(inout) |
this, |
|
|
type(json_file), intent(inout) |
params_primal, |
|
|
type(user_t), intent(in), target |
user |
|
) |
| |
- Parameters
-
[in,out] | this | The object. |
| params_primal | The case file configuration dictionary. |
| user | The user interface. |
Definition at line 558 of file adjoint_scalar_scheme.f90.
◆ adjoint_scalar_scheme_solver_factory()
subroutine adjoint_scalar_scheme::adjoint_scalar_scheme_solver_factory |
( |
class(ksp_t), intent(inout), allocatable, target |
ksp, |
|
|
integer, intent(in), value |
n, |
|
|
character(len=*), intent(in) |
solver, |
|
|
integer, intent(in) |
max_iter, |
|
|
real(kind=rp) |
abstol, |
|
|
logical, intent(in) |
monitor |
|
) |
| |
◆ adjoint_scalar_scheme_update_material_properties()
subroutine adjoint_scalar_scheme::adjoint_scalar_scheme_update_material_properties |
( |
real(kind=rp), intent(in) |
t, |
|
|
integer, intent(in) |
tstep, |
|
|
class(adjoint_scalar_scheme_t), intent(inout) |
this |
|
) |
| |
◆ adjoint_scalar_scheme_validate()
subroutine adjoint_scalar_scheme::adjoint_scalar_scheme_validate |
( |
class(adjoint_scalar_scheme_t), intent(inout), target |
this | ) |
|