Alsvinn
0.5.3
The fast FVM simulator with UQ support
|
#include <alsfvm/functional/LegendrePointWiseCUDA.hpp>
Public Member Functions | |
LegendrePointWiseCUDA (const Parameters ¶meters) | |
virtual void | operator() (volume::Volume &conservedVolumeOut, const volume::Volume &conservedVolumeIn, const real weight, const grid::Grid &grid) override |
virtual ivec3 | getFunctionalSize (const grid::Grid &grid) const override |
Returns grid.getDimensions() More... | |
![]() | |
virtual | ~Functional () |
virtual ivec3 | getGhostCellSizes (const grid::Grid &grid, const volume::Volume &volume) const |
virtual std::string | getPlatformToAllocateOn (const std::string &platform) const |
Additional Inherited Members | |
![]() | |
typedef alsutils::parameters::Parameters | Parameters |
To be used to pass parameters to the constructors. More... | |
Computes the spatial integral of the n-th Legendre polynomial, ie it will output , where
where is the n-th Legendre polynomial.
You have the option of scaling the input u to the interval [-1,1] by specifying the keywords maxValue and minValue, this will essentially compute
In terms of pairing between one point Young measures and test functions, this corresponds to
where and .
alsfvm::functional::LegendrePointWiseCUDA::LegendrePointWiseCUDA | ( | const Parameters & | parameters | ) |
The following parameters are accepted through parameters
Name | Description |
---|---|
minValue | minimum value that the solution can obtain |
maxValue | maximum value that the solution can obtain |
degree | the degree of the polynomial ![]() |
variables | the variables to compute for (space separated) |
|
overridevirtual |
Returns grid.getDimensions()
Implements alsfvm::functional::Functional.
|
overridevirtual |
Computes the operator value on the givne input data
[out] | conservedVolumeOut | at the end, should have the contribution of the functional for the conservedVariables |
[in] | conservedVolumeIn | the state of the conserved variables |
[in] | weight | the current weight to be applied to the functional. Ie, the functional should compute conservedVolumeOut += weight + f(conservedVolumeIn) |
[in] | grid | the grid to use |
Implements alsfvm::functional::Functional.