DAInputRegressionPar.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2 
3  DAFoam : Discrete Adjoint with OpenFOAM
4  Version : v4
5 
6 \*---------------------------------------------------------------------------*/
7 
8 #include "DAInputRegressionPar.H"
9 
10 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
11 
12 namespace Foam
13 {
14 
15 defineTypeNameAndDebug(DAInputRegressionPar, 0);
16 addToRunTimeSelectionTable(DAInput, DAInputRegressionPar, dictionary);
17 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
18 
20  const word inputName,
21  const word inputType,
22  fvMesh& mesh,
23  const DAOption& daOption,
24  const DAModel& daModel,
25  const DAIndex& daIndex)
26  : DAInput(
27  inputName,
28  inputType,
29  mesh,
30  daOption,
31  daModel,
32  daIndex),
33  daRegression_(const_cast<DARegression&>(
34  mesh.thisDb().lookupObject<DARegression>("DARegression")))
35 {
36 }
37 
38 void DAInputRegressionPar::run(const scalarList& input)
39 {
40  /*
41  Description:
42  Assign the input to OF fields
43  */
44 
45  label nParameters = this->size();
46  for (label i = 0; i < nParameters; i++)
47  {
49  }
50 
52 }
53 
54 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
55 
56 } // End namespace Foam
57 
58 // ************************************************************************* //
Foam::DARegression
Definition: DARegression.H:31
Foam::DAInput::inputName_
const word inputName_
name of the input
Definition: DAInput.H:42
Foam::DAOption
Definition: DAOption.H:29
Foam::DAInputRegressionPar::DAInputRegressionPar
DAInputRegressionPar(const word inputName, const word inputType, fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex)
Definition: DAInputRegressionPar.C:19
Foam::addToRunTimeSelectionTable
addToRunTimeSelectionTable(DAFunction, DAFunctionForce, dictionary)
mesh
fvMesh & mesh
Definition: createRefsHeatTransfer.H:4
DAInputRegressionPar.H
Foam::DAIndex
Definition: DAIndex.H:32
Foam::DAInputRegressionPar::daRegression_
DARegression & daRegression_
list of patch names for the thermal var
Definition: DAInputRegressionPar.H:33
Foam::DARegression::setParameter
void setParameter(word modelName, label idxI, scalar val)
set a value to a parameter give an index and a value
Definition: DARegression.H:171
Foam::DAModel
Definition: DAModel.H:57
Foam::defineTypeNameAndDebug
defineTypeNameAndDebug(DAFunction, 0)
Foam
Definition: checkGeometry.C:32
Foam::DAInputRegressionPar::run
virtual void run(const scalarList &input)
Definition: DAInputRegressionPar.C:38
Foam::DAInput
Definition: DAInput.H:30
Foam::DAInputRegressionPar::size
virtual label size()
Definition: DAInputRegressionPar.H:55
Foam::DARegression::compute
label compute()
compute the output based on the latest parameters and inputs
Definition: DARegression.C:340