VirtualFluids 0.2.0
Parallel CFD LBM Solver
Loading...
Searching...
No Matches
VerticalCylinder.h
Go to the documentation of this file.
1//=======================================================================================
2// ____ ____ __ ______ __________ __ __ __ __
3// \ \ | | | | | _ \ |___ ___| | | | | / \ | |
4// \ \ | | | | | |_) | | | | | | | / \ | |
5// \ \ | | | | | _ / | | | | | | / /\ \ | |
6// \ \ | | | | | | \ \ | | | \__/ | / ____ \ | |____
7// \ \ | | |__| |__| \__\ |__| \________/ /__/ \__\ |_______|
8// \ \ | | ________________________________________________________________
9// \ \ | | | ______________________________________________________________|
10// \ \| | | | __ __ __ __ ______ _______
11// \ | | |_____ | | | | | | | | | _ \ / _____)
12// \ | | _____| | | | | | | | | | | \ \ \_______
13// \ | | | | |_____ | \_/ | | | | |_/ / _____ |
14// \ _____| |__| |________| \_______/ |__| |______/ (_______/
15//
16// This file is part of VirtualFluids. VirtualFluids is free software: you can
17// redistribute it and/or modify it under the terms of the GNU General Public
18// License as published by the Free Software Foundation, either version 3 of
19// the License, or (at your option) any later version.
20//
21// VirtualFluids is distributed in the hope that it will be useful, but WITHOUT
22// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
23// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
24// for more details.
25//
26// SPDX-License-Identifier: GPL-3.0-or-later
27// SPDX-FileCopyrightText: Copyright © VirtualFluids Project contributors, see AUTHORS.md in root folder
28//
33//=======================================================================================
34#ifndef VERTICAL_CYLINDER_H
35#define VERTICAL_CYLINDER_H
36
37#include "global.h"
38#include "geometries/Object.h"
39
40namespace vf::gpu {
41
43{
44public:
45 VerticalCylinder(const double& centerX, const double& centerY, const double& centerZ, const double& radius, const double& height);
46 // the axis is in the z-direction
47
48 static SPtr<VerticalCylinder> makeShared(double centerX, double centerY, double centerZ, double radius, double height);
49
50 SPtr<Object> clone() const override;
51
52 double getX1Centroid() const override;
53 double getX1Minimum() const override;
54 double getX1Maximum() const override;
55 double getX2Centroid() const override;
56 double getX2Minimum() const override;
57 double getX2Maximum() const override;
58 double getX3Centroid() const override;
59 double getX3Minimum() const override;
60 double getX3Maximum() const override;
61
62 double getRadius() const;
63 double getHeight() const;
64
65 bool isPointInObject(const double& x1, const double& x2, const double& x3, const double& minOffset, const double& maxOffset) override;
66
67
68 void changeSizeByDelta(double delta) override;
69
70protected:
71 double centerX;
72 double centerY;
73 double centerZ;
74
75 double radius;
76 double height;
77};
78
79}
80
81#endif
82
double getX1Minimum() const override
double getX3Maximum() const override
double getX1Maximum() const override
void changeSizeByDelta(double delta) override
double getX2Minimum() const override
double getX3Centroid() const override
static SPtr< VerticalCylinder > makeShared(double centerX, double centerY, double centerZ, double radius, double height)
double getX1Centroid() const override
double getX2Maximum() const override
double getX2Centroid() const override
SPtr< Object > clone() const override
bool isPointInObject(const double &x1, const double &x2, const double &x3, const double &minOffset, const double &maxOffset) override
double getX3Minimum() const override
std::shared_ptr< T > SPtr