DUNE-ACFEM (2.5.1)
basicfunctions.hh
91 auto coordinateGridFunction(const GridPart& gridPart, const std::integral_constant<unsigned, N>& dummy)
114 coordinateVectorFunction(const GridPart& gridPart, const std::integral_constant<unsigned, N>& dummy)
131 divergence(const Fem::Function<typename GridFunction::FunctionSpaceType, GridFunction>& f_, const std::string& name = "")
134 typedef LocalFunctionWrapper<LocalFunctionType, typename GridFunction::GridPartType> GridFunctionType;
145 gradient(const Fem::Function<typename GridFunction::FunctionSpaceType, GridFunction>& f_, const std::string& name = "")
148 typedef LocalFunctionWrapper<LocalFunctionType, typename GridFunction::GridPartType> GridFunctionType;
176 LocalFunctionWrapper<LocalPiecewiseAdapter<CharacteristicFunction, GridFunction0, GridFunction1>, typename GridFunction0::GridPartType>
177 piecewise(const Fem::Function<typename CharacteristicFunction::FunctionSpaceType, CharacteristicFunction>& characteristic,
182 typedef LocalPiecewiseAdapter<CharacteristicFunction, GridFunction0, GridFunction1> LocalFunctionType;
183 typedef LocalFunctionWrapper<LocalFunctionType, typename GridFunction0::GridPartType> GridFunctionType;
193 return GridFunctionType(pw.name(), pw, gridPart, std::max(realFunction0.space().order(), realFunction1.space().order()));
199 LocalFunctionWrapper<LocalPiecewiseAdapter<CharacteristicFunction, ConstantGridFunction<typename GridFunction1::FunctionSpaceType, typename GridFunction1::GridPartType>, GridFunction1>, typename GridFunction1::GridPartType>
200 piecewise(const Fem::Function<typename CharacteristicFunction::FunctionSpaceType, CharacteristicFunction>& characteristic,
205 typedef ConstantGridFunction<typename GridFunction1::FunctionSpaceType, typename GridFunction1::GridPartType> GridFunction0;
206 typedef LocalPiecewiseAdapter<CharacteristicFunction, GridFunction0, GridFunction1> LocalFunctionType;
207 typedef LocalFunctionWrapper<LocalFunctionType, typename GridFunction0::GridPartType> GridFunctionType;
218 return GridFunctionType(pw.name(), pw, gridPart, std::max(realFunction0.space().order(), realFunction1.space().order()));
223 LocalFunctionWrapper<LocalPiecewiseAdapter<CharacteristicFunction, GridFunction0, ConstantGridFunction<typename GridFunction0::FunctionSpaceType, typename GridFunction0::GridPartType> >, typename GridFunction0::GridPartType>
224 piecewise(const Fem::Function<typename CharacteristicFunction::FunctionSpaceType, CharacteristicFunction>& characteristic,
229 typedef ConstantGridFunction<typename GridFunction0::FunctionSpaceType, typename GridFunction0::GridPartType> GridFunction1;
230 typedef LocalPiecewiseAdapter<CharacteristicFunction, GridFunction0, GridFunction1> LocalFunctionType;
231 typedef LocalFunctionWrapper<LocalFunctionType, typename GridFunction0::GridPartType> GridFunctionType;
241 return GridFunctionType(pw.name(), pw, gridPart, std::max(realFunction0.space().order(), realFunction1.space().order()));
245 LocalFunctionWrapper<LocalPiecewiseAdapter<CharacteristicFunction, ConstantGridFunction<FunctionSpaceType, typename CharacteristicFunction::GridPartType>, ConstantGridFunction<FunctionSpaceType, typename CharacteristicFunction::GridPartType> >, typename CharacteristicFunction::GridPartType>
246 piecewise(const Fem::Function<typename CharacteristicFunction::FunctionSpaceType, CharacteristicFunction>& characteristic,
251 typedef ConstantGridFunction<FunctionSpaceType, typename CharacteristicFunction::GridPartType> GridFunction0;
252 typedef ConstantGridFunction<FunctionSpaceType, typename CharacteristicFunction::GridPartType> GridFunction1;
253 typedef LocalPiecewiseAdapter<CharacteristicFunction, GridFunction0, GridFunction1> LocalFunctionType;
254 typedef LocalFunctionWrapper<LocalFunctionType, typename GridFunction0::GridPartType> GridFunctionType;
264 return GridFunctionType(pw.name(), pw, gridPart, std::max(realFunction0.space().order(), realFunction1.space().order()));
ConstantGridFunction implements a constant function.
Definition: constantfunction.hh:108
Coordinate function returns a specific component of the world point, x_N, so to say.
Definition: coordinatefunctions.hh:63
A function which returns its argument.
Definition: coordinatefunctions.hh:19
An adapter class to compute the divergence of a GridFunction.
Definition: divergencefunction.hh:21
LocalFunctionWrapper wraps a class with a local evaluate method into a grid function.
Definition: localfunctionwrapper.hh:71
An adapter class to compute the gradient of a scalar GridFunction.
Definition: gradientfunction.hh:25
An adapter class to form a piecewise defined function where the domain decomposition is given by the ...
Definition: piecewisefunction.hh:34
const Implementation & asImp(const Fem::BartonNackmanInterface< Interface, Implementation > &arg)
Up-cast to the implementation for any Fem::BartonNackmanInterface.
Definition: expressionoperations.hh:71
static auto wrapToGridFunction(const std::string &name, const FunctionImp &f, const GridPart &g, unsigned order=111)
Possibly wrap a function into a GridFunctionWrapper.
Definition: gridfunctionwrapper.hh:342
static auto coordinateGridFunction(const GridPart &gridPart, const std::integral_constant< unsigned, N > &dummy)
A grid-function which returns the N-th component of the world coordinates of its argument.
Definition: basicfunctions.hh:91
LocalFunctionWrapper< LocalPiecewiseAdapter< CharacteristicFunction, GridFunction0, GridFunction1 >, typename GridFunction0::GridPartType > piecewise(const Fem::Function< typename CharacteristicFunction::FunctionSpaceType, CharacteristicFunction > &characteristic, const Fem::Function< typename GridFunction0::FunctionSpaceType, GridFunction0 > &function0, const Fem::Function< typename GridFunction1::FunctionSpaceType, GridFunction1 > &function1, const std::string &name="")
Form a piecewise defined function where the domain decomposition is defined by the indicator function...
Definition: basicfunctions.hh:177
LocalFunctionWrapper< LocalGradientAdapter< GridFunction >, typename GridFunction::GridPartType > gradient(const Fem::Function< typename GridFunction::FunctionSpaceType, GridFunction > &f_, const std::string &name="")
Take the gradient of a given function.
Definition: basicfunctions.hh:145
LocalFunctionWrapper< LocalDivergenceAdapter< GridFunction >, typename GridFunction::GridPartType > divergence(const Fem::Function< typename GridFunction::FunctionSpaceType, GridFunction > &f_, const std::string &name="")
Take the divergence of a given function.
Definition: basicfunctions.hh:131
static ConstantGridFunction< Fem::FunctionSpace< typename GridPart::ctype, typename GridPart::ctype, GridPart::dimensionworld, GridPart::dimensionworld >, GridPart > coordinateVectorFunction(const GridPart &gridPart, const std::integral_constant< unsigned, N > &dummy)
Construct a unit coordinate vector.
Definition: basicfunctions.hh:114
static auto identityGridFunction(const GridPart &gridPart)
A grid-function which returns the world coordinates of its argument.
Definition: basicfunctions.hh:62
LocalFunctionWrapper< LocalMaxAdapter< GridFunction1, GridFunction2 >, typename GridFunction1::GridPartType > max(const Fem::Function< typename GridFunction1::FunctionSpaceType, GridFunction1 > &f1, const Fem::Function< typename GridFunction2::FunctionSpaceType, GridFunction2 > &f2, const std::string &name="")
Pointwise maximum of two given functions.
Definition: maxfunction.hh:121
Used as "tag" for coordinateGridFunction() and coordinateVectorFunction().
Definition: basicfunctions.hh:84
![Creative Commons License](https://i.creativecommons.org/l/by-sa/4.0/80x15.png)