VirtualFluids 0.2.0
Parallel CFD LBM Solver
Loading...
Searching...
No Matches
Forest.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//
32#ifndef FOREST_H
33#define FOREST_H
34
35#include "Parameter/Parameter.h"
37#include <basics/DataTypes.h>
39#include <stdexcept>
40
41namespace vf::gpu {
42class GridProvider;
43
49
101
102}
103#endif // FOREST_H
104
void init() override
real * forestVelocitiesXPreviousTimestepD
Definition Forest.h:86
const real dragCoefficient
Definition Forest.h:94
const real height
Definition Forest.h:93
real * leafAreaDensityH
Definition Forest.h:89
uint * forestIndicesH
Definition Forest.h:84
uint * forestIndicesD
Definition Forest.h:85
~Forest() override
const real plantAreaIndex
Definition Forest.h:95
real forceRatio
Definition Forest.h:99
real * forestVelocitiesZPreviousTimestepD
Definition Forest.h:88
PlantAreaDensityFunction plantAreaDensityFunction
Definition Forest.h:97
uint numberOfIndices
Definition Forest.h:98
void interact(int level, uint t) override
real * leafAreaDensityD
Definition Forest.h:90
void getTaggedFluidNodes(GridProvider *gridProvider) override
const int level
Definition Forest.h:96
real * forestVelocitiesYPreviousTimestepD
Definition Forest.h:87
uint getNumberOfIndices() const
Definition Forest.h:73
Forest(SPtr< Parameter > para, SPtr< CudaMemoryManager > cudaMemoryManager, real height, real dragCoefficient, real plantAreaIndex, int level, PlantAreaDensityFunction plantAreaDensityFunction)
Definition Forest.h:53
SPtr< CudaMemoryManager > cudaMemoryManager
std::shared_ptr< T > SPtr
float real
Definition DataTypes.h:42
unsigned int uint
Definition DataTypes.h:47
PlantAreaDensityFunction
Definition Forest.h:44