OpenTURNSPythonFieldToPointFunction¶
- class OpenTURNSPythonFieldToPointFunction(inputMesh, inputDim, outputDim)¶
Override FieldToPointFunction from Python.
- Parameters:
- inputMesh
Mesh
The input mesh
- inputDimpositive int
Dimension of the input field values d
- outputDimpositive int
Dimension of the output vector d’
- inputMesh
Methods
getInputDescription
getInputDimension
getInputMesh
getOutputDescription
getOutputDimension
setInputDescription
setOutputDescription
Notes
Examples
>>> import openturns as ot >>> mesh = ot.Mesh(1) >>> class FUNC(ot.OpenTURNSPythonFieldToPointFunction): ... def __init__(self): ... # first argument: ... super(FUNC, self).__init__(mesh, 2, 2) ... self.setInputDescription(['R', 'S']) ... self.setOutputDescription(['T', 'U']) ... def _exec(self, X): ... Y = ot.Sample(X).computeMean() ... return Y >>> F = FUNC()
- __init__(inputMesh, inputDim, outputDim)¶
Examples using the class¶
Estimate Sobol indices on a field to point function
Estimate Sobol indices on a field to point function