39#ifndef inverseLaplacianProblem_H
40#define inverseLaplacianProblem_H
43#include "interpolation.H"
45#include "simpleControl.H"
56#include "mixedFvPatchFields.H"
57#include "cellDistFuncs.H"
60#define _USE_MATH_DEFINES
89 autoPtr<volScalarField>
_T;
104 dimensionedScalar
DT;
194 volScalarField
list2Field(List<scalar> list, scalar innerField = 0.0);
219 void solve(
const char* problem);
253 Foam::vector
cellDim(
const faceList& ff,
const pointField& pp,
254 const cell& cc, labelList pLabels, pointField pLocal);
Header file of the Foam2Eigen class.
Header file of the ITHACAPOD class.
Header file of the ITHACAregularization class, it contains the implementation of several methods for ...
Header file of the ITHACAutilities namespace.
Header file of the Modes class.
Class for the definition of some general parameters, the parameters must be defined from the file ITH...
Implementation of a inverse Laplacian problem .
Eigen::VectorXd Tdiff
Difference between computed and measured temperatures at the thermocouples.
label hotSide_ind
Index of the hotSide patch.
dimensionedScalar DT
Dummy thermal conductivity with unitary value.
List< vector > thermocouplesPos
List containing the positions of the thermocouples.
double H
Heat transfer coefficient [W/(m2 K)].
List< scalar > Tf
Temperature at coldSide [K].
virtual ~inverseLaplacianProblem()
Destructor.
autoPtr< simpleControl > _simple
simpleControl
List< scalar > g
Heat flux at hotSide [W/m2].
bool thermocouplesRead
Flag to know if thermocouples file was read.
List< scalar > faceCellArea
List of patch faces areas [m2].
autoPtr< fv::options > _fvOptions
fvOptions
double J
Cost funtion [K^2].
Eigen::VectorXd Tdirect
Vector of computed temperatures at the thermocouples locations [K].
void restart()
Restart fields.
List< scalar > homogeneousBCcoldSide
List of zeros of the size of coldSide patch.
List< scalar > valueFraction
Value fraction for the Robin BC.
autoPtr< Time > _runTime
Time.
scalar homogeneousBC
Homogenerous BC.
volScalarField list2Field(List< scalar > list, scalar innerField=0.0)
Create a field with the hotSide boundary heat flux at the hotSide bounday cells for visualization.
Eigen::VectorXd Tmeas
Vector of measured temperatures at the thermocouples locations [K].
virtual void assignDirectBC()
Set boundary condition of the direct problem.
List< List< scalar > > gList
List of boundary heat fluxes.
void set_valueFraction()
Set valueFraction list values for Robin condition.
Foam::vector cellDim(const faceList &ff, const pointField &pp, const cell &cc, labelList pLabels, pointField pLocal)
Compute maximum cell dimension in x, y and z.
void set_g()
Set the right g size and fills it with zeros.
label coldSide_ind
Index of the coldSide patch.
autoPtr< fvMesh > _mesh
Mesh.
Eigen::VectorXd fieldValueAtThermocouples(volScalarField &field)
Interpolates the field value at the thermocouples points.
List< scalar > gTrue
True heat flux at hotSide [w/m2].
List< scalar > refGrad
Reference gradient for the Robin BC.
List< int > thermocouplesCellProc
List of incedes of the processors contining each thermocouple.
virtual void readThermocouples()
Identifies in the mesh the cells corresponding to the termocouples locations.
inverseLaplacianProblem()
Null constructor.
void differenceBetweenDirectAndMeasure()
Computes the difference between direct problem solution and measures Saves the difference vector in T...
int thermocouplesNum
Number of thermocouples.
double k
Thermal diffusivity [W/(m K)].
virtual void solveTrue()
Solve the direct problem with the true heat flux as boundary condition and fills the measured temepra...
void solveDirect()
Solve direct problem.
label nProcs
Number of processors.
autoPtr< volScalarField > _T
Temperature field.
List< int > thermocouplesCellID
List of cells indices containing a thermocouple.
Class to implement a full order laplacian parametrized problem.
Header file of the laplacianProblem class.
Header file of the reductionProblem class.