Loading...
Searching...
No Matches
FofM.H
Go to the documentation of this file.
1/*---------------------------------------------------------------------------*\
2 ██╗████████╗██╗ ██╗ █████╗ ██████╗ █████╗ ███████╗██╗ ██╗
3 ██║╚══██╔══╝██║ ██║██╔══██╗██╔════╝██╔══██╗ ██╔════╝██║ ██║
4 ██║ ██║ ███████║███████║██║ ███████║█████╗█████╗ ██║ ██║
5 ██║ ██║ ██╔══██║██╔══██║██║ ██╔══██║╚════╝██╔══╝ ╚██╗ ██╔╝
6 ██║ ██║ ██║ ██║██║ ██║╚██████╗██║ ██║ ██║ ╚████╔╝
7 ╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═══╝
8
9 * In real Time Highly Advanced Computational Applications for Finite Volumes
10 * Copyright (C) 2017 by the ITHACA-FV authors
11-------------------------------------------------------------------------------
12
13 License
14 This file is part of ITHACA-FV
15
16 ITHACA-FV is free software: you can redistribute it and/or modify
17 it under the terms of the GNU Lesser General Public License as published by
18 the Free Software Foundation, either version 3 of the License, or
19 (at your option) any later version.
20
21 ITHACA-FV is distributed in the hope that it will be useful,
22 but WITHOUT ANY WARRANTY; without even the implied warranty of
23 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 GNU Lesser General Public License for more details.
25
26 You should have received a copy of the GNU Lesser General Public License
27 along with ITHACA-FV. If not, see <http://www.gnu.org/licenses/>.
28
29\*---------------------------------------------------------------------------*/
30#ifndef FofM_H
31#define FofM_H
32#include <string>
33#include <iostream>
34#include <math.h>
35#include <Eigen/Eigen>
36#include <sys/stat.h>
37#include "fvCFD.H"
38#include "ITHACAstream.H"
39class FofM
40{
41 public:
42 //constructors
43 FofM();
44 FofM(int argc, char* argv[], label Nsampled);
45 //~FofM() {};
46
47 //Members:
49 Eigen::VectorXd modelOutput;
51 mutable autoPtr<fvMesh> _mesh;
52 autoPtr<Time> _runTime;
54 PtrList<volScalarField> ptrfield;
55 PtrList<volVectorField> Vptrfield;
57 label Npoints;
59 std::string name;
61 bool MObuilt = false;
62
63 //Methods
64
68 virtual void buildMO(std::string dir);
69
70};
71
72#endif
Header file of the ITHACAstream class, it contains the implementation of several methods for input ou...
Definition FofM.H:40
label Npoints
Number of points for which simulation is run.
Definition FofM.H:57
virtual void buildMO(std::string dir)
virtual method that computes the figure of merit it must be overriden in derived classes of FofM dir ...
Definition FofM.C:13
FofM()
Definition FofM.C:3
std::string name
Name of the figure of merit.
Definition FofM.H:59
Eigen::VectorXd modelOutput
Vector to store the desired output of the model, i.e. the figure of merit.
Definition FofM.H:49
bool MObuilt
boolean variable to check if the model output is computed (true) or not (false)
Definition FofM.H:61
autoPtr< Time > _runTime
Definition FofM.H:52
PtrList< volScalarField > ptrfield
list of pointers to scalar and vector field
Definition FofM.H:54
PtrList< volVectorField > Vptrfield
Definition FofM.H:55
autoPtr< fvMesh > _mesh
dummy variables to transform FofM into a class
Definition FofM.H:51