ThunderEgg
1.0.0
|
Various tools for filling in values in a domain. More...
#include <DomainTools.h>
Static Public Member Functions | |
template<int D> | |
static void | GetRealCoord (const PatchInfo< D > &pinfo, const std::array< int, D > &coord, std::array< double, D > &real_coord) |
Given a path info object, get the coordinate from a given index into the patch. More... | |
template<int D> | |
static void | GetRealCoordGhost (const PatchInfo< D > &pinfo, const std::array< int, D > &coord, std::array< double, D > &real_coord) |
Given a path info object, get the coordinate from a given index into the patch. More... | |
template<int D> | |
static void | GetRealCoordBound (const PatchInfo< D > &pinfo, const std::array< int, D - 1 > &coord, Side< D > s, std::array< double, D > &real_coord) |
Given a path info object and a side of the patch, get the coordinate from a given index into the interface of the patch. More... | |
template<int D> | |
static void | SetValues (const Domain< D > &domain, Vector< D > &vec, int component_index, std::function< double(const std::array< double,(int) D > &)> func) |
Set the values for a vector with the given function. More... | |
static void | SetValues (const Domain< 3 > &domain, Vector< 3 > &vec, int component_index, std::function< double(double, double, double)> func) |
Set the values for a vector with the given function. More... | |
static void | SetValues (const Domain< 2 > &domain, Vector< 2 > &vec, int component_index, std::function< double(double, double)> func) |
Set the values for a vector with the given function. More... | |
static void | SetValues (const Domain< 1 > &domain, Vector< 1 > &vec, int component_index, std::function< double(double)> func) |
Set the values for a vector with the given function. More... | |
template<int D, typename... Args> | |
static void | SetValues (const Domain< D > &domain, Vector< D > &vec, std::function< double(const std::array< double, D > &)> func, Args... args) |
Set the values for a vector with the given functions. More... | |
template<int D> | |
static void | SetValuesWithGhost (const Domain< D > &domain, Vector< D > &vec, int component_index, std::function< double(const std::array< double,(int) D > &)> func) |
Set the values (including ghost values) for a vector with the given function. More... | |
static void | SetValuesWithGhost (const Domain< 3 > &domain, Vector< 3 > &vec, int component_index, std::function< double(double, double, double)> func) |
Set the values (including ghost values) for a vector with the given function. More... | |
static void | SetValuesWithGhost (const Domain< 2 > &domain, Vector< 2 > &vec, int component_index, std::function< double(double, double)> func) |
Set the values (including ghost values) for a vector with the given function. More... | |
static void | SetValuesWithGhost (const Domain< 1 > &domain, Vector< 1 > &vec, int component_index, std::function< double(double)> func) |
Set the values (including ghost values) for a vector with the given function. More... | |
template<int D, typename... Args> | |
static void | SetValuesWithGhost (const Domain< D > &domain, Vector< D > &vec, std::function< double(const std::array< double, D > &)> func, Args... args) |
Set the values (including ghost values) for a vector with the given functions. More... | |
template<typename... Args> | |
static void | SetValuesWithGhost (const Domain< 3 > &domain, Vector< 3 > &vec, std::function< double(double, double, double)> func, Args... args) |
Set the values (including ghost values) for a vector with the given functions. More... | |
template<int D> | |
static double | Integrate (const Domain< D > &domain, const Vector< D > &u) |
Integrate a vector over the domain. More... | |
Various tools for filling in values in a domain.
|
inlinestatic |
Given a path info object, get the coordinate from a given index into the patch.
If one of the values is -1 or ns[axis] it will give the coordinate of the cooresponding interface
D | the number of cartesian dimensions |
pinfo | the patch to get the coordinate for |
coord | the index in the patch |
real_coord | (output) the coordnitate of the index |
|
inlinestatic |
Given a path info object and a side of the patch, get the coordinate from a given index into the interface of the patch.
D | the number of cartesian dimensions |
pinfo | the patch to get the coordinate for |
coord | the index in the patch |
s | the side of the patch that the boundary is on |
real_coord | (output) the coordnitate of the index |
|
inlinestatic |
Given a path info object, get the coordinate from a given index into the patch.
D | the number of cartesian dimensions |
pinfo | the patch to get the coordinate for |
coord | the index in the patch |
real_coord | (output) the coordnitate of the index |
|
inlinestatic |
Integrate a vector over the domain.
u | the vector |
|
inlinestatic |
Set the values for a vector with the given function.
domain | the domain that we are setting values for |
vec | the vector to set values in |
component_index | the component to set |
func | the function |
|
inlinestatic |
Set the values for a vector with the given function.
domain | the domain that we are setting values for |
vec | the vector to set values in |
component_index | the component to set |
func | the function |
|
inlinestatic |
Set the values for a vector with the given function.
domain | the domain that we are setting values for |
vec | the vector to set values in |
component_index | the component to set |
func | the function |
|
inlinestatic |
Set the values for a vector with the given function.
D | the number of cartesian dimensions |
domain | the domain that we are setting values for |
vec | the vector to set values in |
component_index | the component to set |
func | the function |
|
inlinestatic |
Set the values for a vector with the given functions.
D | the number of cartesian dimensions |
Args | additional functions |
domain | the domain that we are setting values for |
vec | the vector to set values in |
component_index | the component to set |
func | the function |
args | additional functions for additional components |
|
inlinestatic |
Set the values (including ghost values) for a vector with the given function.
domain | the domain that we are setting values for |
vec | the vector to set values in |
component_index | the component to set |
func | the function |
|
inlinestatic |
Set the values (including ghost values) for a vector with the given function.
domain | the domain that we are setting values for |
vec | the vector to set values in |
component_index | the component to set |
func | the function |
|
inlinestatic |
Set the values (including ghost values) for a vector with the given function.
domain | the domain that we are setting values for |
vec | the vector to set values in |
component_index | the component to set |
func | the function |
|
inlinestatic |
Set the values (including ghost values) for a vector with the given functions.
Args | additional functions |
domain | the domain that we are setting values for |
vec | the vector to set values in |
component_index | the component to set |
func | the function |
args | additional functions for additional components |
|
inlinestatic |
Set the values (including ghost values) for a vector with the given function.
D | the number of cartesian dimensions |
domain | the domain that we are setting values for |
vec | the vector to set values in |
component_index | the component to set |
func | the function |
|
inlinestatic |
Set the values (including ghost values) for a vector with the given functions.
D | the number of cartesian dimensions |
T | function type |
Args | additional functions |
domain | the domain that we are setting values for |
vec | the vector to set values in |
component_index | the component to set |
func | the function |
args | additional functions for additional components |