22 std::string&& surfaceflux_property_vector_name)
23 : surface_mesh(surfaceflux_mesh),
24 property_vector_name(std::move(surfaceflux_property_vector_name))
30 std::fill(surfaceflux_pv->begin(), surfaceflux_pv->end(), 0.0);
33std::unique_ptr<ProcessLib::SurfaceFluxData>
36 std::vector<std::unique_ptr<MeshLib::Mesh>>
const& meshes)
41 auto surfaceflux_pv_name =
45 if (mesh_name.empty())
51 "Read surfaceflux meta data:\n\tmesh:'{:s}'\n\tproperty name: "
53 mesh_name, surfaceflux_pv_name);
57 return std::make_unique<SurfaceFluxData>(surfaceflux_mesh,
58 std::move(surfaceflux_pv_name));
62 std::vector<GlobalVector*>
const& x,
double const t,
Process const& p,
63 int const process_id,
int const integration_order,
65 std::vector<std::size_t>
const& active_element_ids)
70 std::fill(surfaceflux_pv->begin(), surfaceflux_pv->end(), 0.0);
71 auto surfaceflux_process =
73 p.getProcessVariables(process_id)[0]
75 .getNumberOfGlobalComponents(),
78 surfaceflux_process.integrate(
79 x, *surfaceflux_pv, t, bulk_mesh, active_element_ids,
81 double const t, std::vector<GlobalVector*>
const& x)
82 {
return p.getFlux(element_id, pnt, t, x); });
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
T getConfigParameter(std::string const ¶m) const
PropertyVector< T > * getOrCreateMeshProperty(Mesh &mesh, std::string const &property_name, MeshItemType const item_type, int const number_of_components)
Mesh & findMeshByName(std::vector< std::unique_ptr< Mesh > > const &meshes, std::string_view const name)
std::string const property_vector_name
SurfaceFluxData(MeshLib::Mesh &surfaceflux_mesh, std::string &&surfaceflux_property_vector_name)
void integrate(std::vector< GlobalVector * > const &x, double const t, Process const &p, int const process_id, int const integration_order, MeshLib::Mesh const &bulk_mesh, std::vector< std::size_t > const &active_element_ids)
MeshLib::Mesh & surface_mesh
static std::unique_ptr< ProcessLib::SurfaceFluxData > createSurfaceFluxData(BaseLib::ConfigTree const &calculatesurfaceflux_config, std::vector< std::unique_ptr< MeshLib::Mesh > > const &meshes)