Revision 47efb78cdd3532bed0283271a57fd33d05431b1b authored by Lars Bilke on 09 December 2021, 07:28:25 UTC, committed by Lars Bilke on 09 December 2021, 07:28:25 UTC
Updated Conan CMake integration See merge request ogs/ogs!3910
SurfaceFlux.h
/**
* \file
* \copyright
* Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#pragma once
#include <vector>
#include "ProcessLib/Process.h"
#include "SurfaceFluxLocalAssembler.h"
namespace ProcessLib
{
class SurfaceFlux final
{
public:
/// Constructs an object that is able to compute a balance.
/// @param boundary_mesh The integration boundary mesh.
/// @param bulk_property_number_of_components The number of components the
/// variable has.
/// @param integration_order Integration order used in local assembly.
SurfaceFlux(MeshLib::Mesh& boundary_mesh,
std::size_t bulk_property_number_of_components,
unsigned const integration_order);
/// Executes for each element of the mesh the local integration procedure.
/// @param x The global solution the integration values will be fetched of.
/// @param balance The vector the integration results will be stored in.
/// @param t The balance will be computed at the time t.
/// @param bulk_mesh Stores a reference to the bulk mesh that is needed to
/// fetch the information for the integration over the surface mesh.
/// @param active_element_ids The IDs of active elements. It is empty if
/// there is no deactivated subdomain.
/// @param getFlux function that calculates the flux in the integration
/// points of the face elements of the bulk element that belongs to the
/// surface.
void integrate(std::vector<GlobalVector*> const& x,
MeshLib::PropertyVector<double>& balance,
double const t,
MeshLib::Mesh const& bulk_mesh,
std::vector<std::size_t> const& active_element_ids,
std::function<Eigen::Vector3d(
std::size_t const, MathLib::Point3d const&, double const,
std::vector<GlobalVector*> const&)> const& getFlux);
private:
// the local assemblers for each element of the mesh
std::vector<std::unique_ptr<SurfaceFluxLocalAssemblerInterface>>
_local_assemblers;
};
} // namespace ProcessLib
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...