Advanced Multi-Physics (AMP)
On-Line Documentation
Functions
FDHelper.h File Reference
#include "AMP/discretization/DOF_Manager.h"
#include "AMP/mesh/Mesh.h"
#include "AMP/mesh/MeshID.h"
#include "AMP/vectors/MultiVector.h"
#include "AMP/vectors/Vector.h"
Include dependency graph for FDHelper.h:

Go to the source code of this file.

Functions

void fillMultiVectorWithFunction (std::shared_ptr< const AMP::Mesh::Mesh > Mesh, AMP::Mesh::GeomType geom, std::shared_ptr< const AMP::Discretization::DOFManager > scalarDOFMan, std::shared_ptr< AMP::LinearAlgebra::Vector > vec_, const std::function< double(size_t component, AMP::Mesh::Point &point)> &fun)
 
std::array< double, 3 > getDiscreteNorms (const std::vector< double > &h, std::shared_ptr< const AMP::LinearAlgebra::Vector > u)
 

Function Documentation

◆ fillMultiVectorWithFunction()

void fillMultiVectorWithFunction ( std::shared_ptr< const AMP::Mesh::Mesh Mesh,
AMP::Mesh::GeomType  geom,
std::shared_ptr< const AMP::Discretization::DOFManager scalarDOFMan,
std::shared_ptr< AMP::LinearAlgebra::Vector vec_,
const std::function< double(size_t component, AMP::Mesh::Point &point)> &  fun 
)

Populate the given multivector a function of the given type. Assumes two multivector has 2 components, each of which can be handled with the given scalar DOFManager

◆ getDiscreteNorms()

std::array< double, 3 > getDiscreteNorms ( const std::vector< double > &  h,
std::shared_ptr< const AMP::LinearAlgebra::Vector u 
)

Compute discrete L^p norms of vector u, for p = 1,2,inf on a regular box-shaped mesh with mesh spacings h in each dimension



Advanced Multi-Physics (AMP)
Oak Ridge National Laboratory
Idaho National Laboratory
Los Alamos National Laboratory
This page automatically produced from the
source code by doxygen
Last updated: Tue Mar 10 2026 13:06:41.
Comments on this page