OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
FixtureSimulation3D.h
Go to the documentation of this file.
1#pragma once
2#include <gtest/gtest.h>
3
4#include "Solver/Solver.h"
7#include "Grid/Grid.h"
9
10class FixtureSimulation3D : public testing::TestWithParam<Alignment>
11{
12public:
14
19
20 const index_t GetSourceIndex() const { return _sourceIndex; };
21 const index_t GetSourceCoordinateX() const { return _sourceCoordinateX; };
22 const index_t GetSourceCoordinateY() const { return _sourceCoordinateY; };
23 const index_t GetSourceCoordinateZ() const { return _sourceCoordinateZ; };
24
25 FITTD3DLoop<float> * GetSimulator() const { return _simulation; };
26
27 const index_t GetDegreesOfFreedomInX()const { return _degreesOfFreedomInX; };
28 const index_t GetDegreesOfFreedomInY()const { return _degreesOfFreedomInY; };
29 const index_t GetDegreesOfFreedomInZ()const { return _degreesOfFreedomInZ; };
30
31 void SimulateTimestep(int timeStep);
32private:
33
34 index_t _sourceIndex;
35 index_t _sourceCoordinateX;
36 index_t _sourceCoordinateY;
37 index_t _sourceCoordinateZ;
38
39 index_t _degreesOfFreedomInX;
40 index_t _degreesOfFreedomInY;
41 index_t _degreesOfFreedomInZ;
42
43 FITTD3DLoop<float> * _simulation = nullptr;
44 Grid<float> * _grid = nullptr;
45 CurlCoefficients3D<float> * _coefficients = nullptr;
46 CurlCoefficients3D<float> * _coefficientsDual = nullptr;
47 Port<float> * _port = nullptr;
48
49 void CreateAirCubeECentredHardwiredSolver(sourceType sourceType, axis sourceAxis, Alignment alignment);
50};
Alignment
Definition Allignments.h:3
sourceType
Definition SourceTarget.h:4
axis
Definition SourceTarget.h:5
int64_t index_t
Definition SystemDependentDefines.h:13
Definition CurlCoefficients3D.h:8
Definition FITTD3DLoop.h:11
Definition FixtureSimulation3D.h:11
void CreateAirCubeEyCentredHardwiredSolver(Alignment alignment)
Definition FixtureSimulation3D.cpp:19
void CreateAirCubeExCentredHardwiredSolver(Alignment alignment)
Definition FixtureSimulation3D.cpp:24
const index_t GetDegreesOfFreedomInY() const
Definition FixtureSimulation3D.h:28
void CreateAirCubeHxCentredHardwiredSolver(Alignment alignment)
Definition FixtureSimulation3D.cpp:30
void SimulateTimestep(int timeStep)
Definition FixtureSimulation3D.cpp:40
void CreateAirCubeHyCentredHardwiredSolver(Alignment alignment)
Definition FixtureSimulation3D.cpp:35
~FixtureSimulation3D()
Definition FixtureSimulation3D.cpp:13
const index_t GetSourceCoordinateX() const
Definition FixtureSimulation3D.h:21
const index_t GetSourceIndex() const
Definition FixtureSimulation3D.h:20
FITTD3DLoop< float > * GetSimulator() const
Definition FixtureSimulation3D.h:25
const index_t GetSourceCoordinateZ() const
Definition FixtureSimulation3D.h:23
const index_t GetDegreesOfFreedomInZ() const
Definition FixtureSimulation3D.h:29
const index_t GetSourceCoordinateY() const
Definition FixtureSimulation3D.h:22
const index_t GetDegreesOfFreedomInX() const
Definition FixtureSimulation3D.h:27
Definition Grid.h:15
Definition Port.h:11