Loading...
Searching...
No Matches
conversion.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  terra
 
namespace  terra::fv
 
namespace  terra::fv::hex
 

Concepts

concept  terra::fv::hex::FVProjectionFunctor
 

Functions

template<typename ScalarType , typename GridScalarType , FVProjectionFunctor< ScalarType, GridScalarType > Functor>
void terra::fv::hex::l2_project_analytical_to_fv (linalg::VectorFVScalar< ScalarType > &dst, const Functor &src, const grid::Grid3DDataVec< GridScalarType, 3 > &coords_shell, const grid::Grid2DDataScalar< GridScalarType > &coords_radii)
 L2 projection of an analytical function into a finite volume function.
 
template<typename ScalarType , typename GridScalarType >
void terra::fv::hex::l2_project_fv_to_fe (linalg::VectorQ1Scalar< ScalarType > &dst, const linalg::VectorFVScalar< ScalarType > &src, const grid::shell::DistributedDomain &domain, const grid::Grid3DDataVec< GridScalarType, 3 > &coords_shell, const grid::Grid2DDataScalar< GridScalarType > &coords_radii, std::vector< linalg::VectorQ1Scalar< ScalarType > > &tmps)
 L2 projection from a finite volume function into a Q1 (wedge) finite element function.
 
template<typename ScalarType , typename GridScalarType >
void terra::fv::hex::l2_project_fv_to_fe_lumped (linalg::VectorQ1Scalar< ScalarType > &dst, const linalg::VectorFVScalar< ScalarType > &src, const grid::shell::DistributedDomain &domain, const grid::Grid3DDataVec< GridScalarType, 3 > &coords_shell, const grid::Grid2DDataScalar< GridScalarType > &coords_radii, std::vector< linalg::VectorQ1Scalar< ScalarType > > &tmps)
 Bound-preserving FV-to-FE transfer via a lumped mass matrix.
 
template<typename ScalarType , typename GridScalarType >
void terra::fv::hex::l2_project_fe_to_fv (linalg::VectorFVScalar< ScalarType > &dst, const linalg::VectorQ1Scalar< ScalarType > &src, const grid::shell::DistributedDomain &domain, const grid::Grid3DDataVec< GridScalarType, 3 > &coords_shell, const grid::Grid2DDataScalar< GridScalarType > &coords_radii)
 L2 projection from a Q1 finite element function into a finite volume function.