Defines dirichlet conditions for scalars.
|
interface | usr_scalar_bc_eval |
| Abstract interface defining a user defined scalar boundary condition (pointwise) Just imitating inflow for now, but we should update this Probably passing the whole field, params, coef, etcetc would be good. More...
|
|
type | usr_scalar_t |
| User defined dirichlet condition for scalars. More...
|
|
|
subroutine | usr_scalar_free (this) |
|
subroutine | usr_scalar_apply_scalar (this, x, n, t, tstep) |
| Scalar apply Just imitating inflow for now, but we should look this over Applies boundary conditions in eval on x.
|
|
subroutine | usr_scalar_apply_scalar_dev (this, x_d, t, tstep) |
| Scalar apply (device version) Just imitating inflow for now, but we should look this over Applies boundary conditions in eval on x.
|
|
subroutine | usr_scalar_apply_vector (this, x, y, z, n, t, tstep) |
| No-op vector apply.
|
|
subroutine | usr_scalar_apply_vector_dev (this, x_d, y_d, z_d, t, tstep) |
| No-op vector apply (device version)
|
|
subroutine | usr_scalar_set_eval (this, user_scalar_bc) |
| Assign user provided eval function.
|
|
subroutine | usr_scalar_validate (this) |
| Validate user scalar condition.
|
|
◆ usr_scalar_apply_scalar()
subroutine usr_scalar::usr_scalar_apply_scalar |
( |
class(usr_scalar_t), intent(inout) |
this, |
|
|
real(kind=rp), dimension(n), intent(inout) |
x, |
|
|
integer, intent(in) |
n, |
|
|
real(kind=rp), intent(in), optional |
t, |
|
|
integer, intent(in), optional |
tstep |
|
) |
| |
|
private |
- Parameters
-
x | The field array to apply the boundary condition to. |
n | The size of x. |
Definition at line 117 of file usr_scalar.f90.
◆ usr_scalar_apply_scalar_dev()
- Parameters
-
x | The array of values to apply. |
n | The size of x. |
Definition at line 187 of file usr_scalar.f90.
◆ usr_scalar_apply_vector()
subroutine usr_scalar::usr_scalar_apply_vector |
( |
class(usr_scalar_t), intent(inout) |
this, |
|
|
real(kind=rp), dimension(n), intent(inout) |
x, |
|
|
real(kind=rp), dimension(n), intent(inout) |
y, |
|
|
real(kind=rp), dimension(n), intent(inout) |
z, |
|
|
integer, intent(in) |
n, |
|
|
real(kind=rp), intent(in), optional |
t, |
|
|
integer, intent(in), optional |
tstep |
|
) |
| |
|
private |
◆ usr_scalar_apply_vector_dev()
subroutine usr_scalar::usr_scalar_apply_vector_dev |
( |
class(usr_scalar_t), intent(inout), target |
this, |
|
|
type(c_ptr) |
x_d, |
|
|
type(c_ptr) |
y_d, |
|
|
type(c_ptr) |
z_d, |
|
|
real(kind=rp), intent(in), optional |
t, |
|
|
integer, intent(in), optional |
tstep |
|
) |
| |
|
private |
◆ usr_scalar_free()
◆ usr_scalar_set_eval()
- Parameters
-
user_scalar_bc | User specified scalar boundary condition |
Definition at line 297 of file usr_scalar.f90.
◆ usr_scalar_validate()