/home/runner/work/amr-wind/amr-wind/amr-wind/boundary_conditions/scalar_bcs.H Source File

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/boundary_conditions/scalar_bcs.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
scalar_bcs.H
Go to the documentation of this file.
1#ifndef SCALAR_BCS_H
2#define SCALAR_BCS_H
3
9
10namespace amr_wind::scalar_bc {
11
12template <typename WallOp>
14 Field& field,
15 const std::string& inflow_udf,
16 const amrex::AmrCore& mesh,
17 const SimTime& time)
18{
19 if (inflow_udf == "CustomScalar") {
22 mesh, time, InflowOp(field));
23 } else {
24 amrex::Abort("Scalar BC: Invalid dirichlet BC type = " + inflow_udf);
25 }
26}
27
29 Field& field,
30 const amrex::AmrCore& mesh,
31 const SimTime& time,
32 const amrex::Array<const std::string, 3>& udfs);
33
34} // namespace amr_wind::scalar_bc
35
36#endif /* SCALAR_BCS_H */
Definition FieldFillPatchOps.H:174
Definition Field.H:116
void register_fill_patch_op(Args &&... args)
Definition Field.H:306
Definition SimTime.H:30
Definition scalar_bcs.cpp:3
void register_scalar_dirichlet(Field &field, const amrex::AmrCore &mesh, const SimTime &time, const amrex::Array< const std::string, 3 > &udfs)
Definition scalar_bcs.cpp:4
void register_inflow_scalar_dirichlet(Field &field, const std::string &inflow_udf, const amrex::AmrCore &mesh, const SimTime &time)
Definition scalar_bcs.H:13
Definition FieldBCOps.H:228