Loading...
Searching...
No Matches
MeshConfiguration.H
1#ifndef MESHPARAMETERS_H
2#define MESHPARAMETERS_H
3#pragma once
4
5#include "fvMesh.H"
6#include "volFieldsFwd.H"
7
8
12class MeshConfiguration
13{
14public:
15 MeshConfiguration() : m_mesh(nullptr), m_nCells(0), m_volume(nullptr),
16 m_totalVolume(0.0), m_delta(nullptr){}
17
18 Foam::fvMesh& get_mesh() const { return *m_mesh; }
19 const Foam::label& get_nCells() const { return m_nCells; }
20
21 Foam::volScalarField& get_volume() const { return *m_volume; }
22 const double& get_totalVolume() const { return m_totalVolume; }
23 const Foam::volScalarField& get_delta() const { return *m_delta; }
24
25 void set_mesh(Foam::fvMesh* m) { m_mesh = m; }
26 void set_nCells(Foam::label n) { m_nCells = n; }
27 void set_volume(Foam::volScalarField* v) { m_volume = v; }
28 void set_totalVolume(double tv) { m_totalVolume = tv; }
29 void set_delta(Foam::volScalarField* d) { m_delta = d; }
30
31private:
32 Foam::fvMesh* m_mesh;
33 Foam::label m_nCells;
34 Foam::volScalarField* m_volume;
35 double m_totalVolume;
36 Foam::volScalarField* m_delta;
37};
38
39#endif // MESHPARAMETERS_H