svMultiPhysics
Loading...
Searching...
No Matches
Simulation.h
1// SPDX-FileCopyrightText: Copyright (c) Stanford University, The Regents of the University of California, and others.
2// SPDX-License-Identifier: BSD-3-Clause
3
4#ifndef SIMULATION_H
5#define SIMULATION_H
6
7#include "ComMod.h"
8#include "Parameters.h"
9#include "SimulationLogger.h"
10#include "LinearAlgebra.h"
11
12#include <string>
13
15
16 public:
17 Simulation();
19
20 const mshType& get_msh(const std::string& name);
21
22 CepMod& get_cep_mod() { return cep_mod; };
23 ChnlMod& get_chnl_mod() { return chnl_mod; };
24 ComMod& get_com_mod() { return com_mod; };
25
26 // Read a solver paramerer input XML file.
27 void read_parameters(const std::string& fileName);
28
29 // Set simulation and module member data from Parameters.
31
32 //----- Fortran subroutines -----//
33 //void read_msh();
34
35 //----- Fortran modules -----//
36 CepMod cep_mod;
37 ChnlMod chnl_mod;
38 CmMod cm_mod;
39 ComMod com_mod;
40
41 // Solver parameters read in from solver input XML file.
42 Parameters parameters;
43
44 // Log solution information.
45 SimulationLogger logger;
46
47 // Number of time steps
48 int nTs;
49
50 // Simulation initialization file path
51 std::string fTmp;
52
53 // Spectral radius of infinite time step; this is later used in equations.
54 double roInf;
55
56 // Simulation requires remeshing
57
58 bool isReqd;
59
60 // Name of the history file.
61 std::string history_file_name;
62
63 LinearAlgebra* linear_algebra = nullptr;
64};
65
66#endif
67
Definition CepMod.h:193
Definition ChnlMod.h:74
The CmMod class duplicates the data structures in the Fortran CMMOD module defined in COMU....
Definition CmMod.h:35
The ComMod class duplicates the data structures in the Fortran COMMOD module defined in MOD....
Definition ComMod.h:1514
The LinearAlgebra class provides an abstract interface to linear algebra frameworks: FSILS,...
Definition LinearAlgebra.h:13
The Parameters class stores parameter values read in from a solver input file.
Definition Parameters.h:1602
Definition Simulation.h:14
void set_module_parameters()
Set the simulation and module member data.
Definition Simulation.cpp:47
void read_parameters(const std::string &fileName)
Read solver parameters.
Definition Simulation.cpp:36
The SimulationLogger class is used to write information to a text file and optionally to cout.
Definition SimulationLogger.h:13
This is the container for a mesh or NURBS patch, those specific to NURBS are noted.
Definition ComMod.h:863