Loading...
Searching...
No Matches
createThermocouples.H
1IOdictionary
2thermocouplesPosition // Kabir: "Right now, thermocouplesPosition has as many thermocouples as thermocouplesDict has. It means that thermocouplesNum is equal to the number of thermocouples in thermocouplesDict."
3(
4 IOobject
5 (
6 "thermocouplesDict", // inside 06enKFwDF_3dIHTP.H the function named int getObservationSize() reads measurementsDict
7 runTime.constant(), // inside 06enKFwDF_3dIHTP.H the function named Eigen::VectorXd observe(volScalarField field) reads measurementsDict
8 mesh, // inside 06enKFwDF_3dIHTP.H the function named Eigen::VectorXd observe(Eigen::VectorXd field) reads measurementsDict
9 IOobject::MUST_READ, // inside 06enKFwDF_3dIHTP.H the function named void readObservationTimes() reads observationDeltaTimesteps and observationStartTimestep
10 IOobject::NO_WRITE
11 )
12);
13
14List<vector> TCpos(thermocouplesPosition.lookup("positions"));
15thermocouplesNum = TCpos.size();
16thermocouplesPosition.lookup("timeSamplesT0") >>
17 timeSamplesT0; // timeSamplesT0 1.0;
18thermocouplesPosition.lookup("timeSamplesDeltaT") >>
19 timeSamplesDeltaT; // timeSamplesDeltaT 1.0;
20timeSamplesNum = (runTime.endTime().value() - timeSamplesT0) / timeSamplesDeltaT
21 + 1; // 20, This is wrong. (It should be runTime.endTime().value()/Ntimes)/observationDeltaTimesteps
22Info << "First sampling time = " << timeSamplesT0 <<
23 endl; // 1
24Info << "Delta time between samples = " << timeSamplesDeltaT <<
25 endl; // 1
26Info << "Number of samplings = " << timeSamplesNum <<
27 endl; // 20, This is wrong. (It should be runTime.endTime().value()/Ntimes)/observationDeltaTimesteps
28Info << "Number of samplings should be calculated by (endtime / Ntimes) / observationDeltaTimesteps, so, the above calculated one is inncorect "
29 << endl;
30
31
32
33// timeSamplesT0 1.0; First sampling time
34// timeSamplesDeltaT 1.0; Delta time between samples
35
36
37// observationDeltaTimesteps 2; inside 06enKFwDF_3dIHTP.H
38// observationStartTimestep 1; inside 06enKFwDF_3dIHTP.H
39
40// Number of samples in time = 50 it is equal to equal measurements.cols() inside 06enKFwDF_3dIHTP.H, Ntimes/observationDeltaTimesteps
41// Number of sample in space = 100 it is equal to equal measurements.rows() inside 06enKFwDF_3dIHTP.H, number of thermocouples in thermocouplesDict."
42