www.cemf.ir
NBS.cpp
Go to the documentation of this file.
1 /*------------------------------- phasicFlow ---------------------------------
2  O C enter of
3  O O E ngineering and
4  O O M ultiscale modeling of
5  OOOOOOO F luid flow
6 ------------------------------------------------------------------------------
7  Copyright (C): www.cemf.ir
8  email: hamid.r.norouzi AT gmail.com
9 ------------------------------------------------------------------------------
10 Licence:
11  This file is part of phasicFlow code. It is a free software for simulating
12  granular and multiphase flows. You can redistribute it and/or modify it under
13  the terms of GNU General Public License v3 or any other later versions.
14 
15  phasicFlow is distributed to help others in their research in the field of
16  granular and multiphase flows, but WITHOUT ANY WARRANTY; without even the
17  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18 
19 -----------------------------------------------------------------------------*/
20 
21 #include "NBS.hpp"
22 
24 (
25  const dictionary& dict,
26  const box& domainBox,
27  real minBSSize,
28  real maxBSSize,
29  const deviceViewType1D<realx3> &position,
30  const pFlagTypeDevice &flags,
31  const deviceViewType1D<real> &diam,
32  uint32 nWallPoints,
33  uint32 nWallElements,
34  const ViewType1D<realx3,memory_space>& wallPoints,
35  const ViewType1D<uint32x3,memory_space>& wallVertices,
36  const ViewType1D<realx3,memory_space>& wallNormals
37 )
38 :
40  dict,
41  domainBox,
42  minBSSize,
43  maxBSSize,
44  position,
45  flags,
46  diam),
47  sizeRatio_(max(dict.getVal<real>("sizeRatio"), 1.0)),
48  cellExtent_(max(dict.getVal<real>("cellExtent"), 0.5)),
49  adjustableBox_(dict.getVal<Logical>("adjustableBox")),
50  NBSLevel0_
51  (
52  this->domainBox_,
53  maxBSSize,
54  sizeRatio_,
55  position,
56  flags,
57  adjustableBox_()
58  ),
59  cellsWallLevel0_
60  (
61  cellExtent_,
62  nWallPoints,
63  nWallElements,
64  wallPoints,
65  wallVertices,
66  wallNormals
67  )
68 {
69 }
NBS.hpp
pFlow::real
float real
Definition: builtinTypes.hpp:45
pFlow::particleWallContactSearchs< NBS >
pFlow::algorithms::KOKKOS::max
INLINE_FUNCTION_H Type max(const Type *first, uint32 numElems)
Definition: kokkosAlgorithms.hpp:104
pFlow::uint32
unsigned int uint32
Definition: builtinTypes.hpp:56
pFlow::deviceViewType1D
Kokkos::View< T * > deviceViewType1D
1D array (vector) with default device (memory space and execution space)
Definition: KokkosTypes.hpp:121
pFlow::NBS::NBS
NBS(const dictionary &dict, const box &domainBox, real minBSSize, real maxBSSize, const deviceViewType1D< realx3 > &position, const pFlagTypeDevice &flags, const deviceViewType1D< real > &diam, uint32 nWallPoints, uint32 nWallElements, const ViewType1D< realx3, memory_space > &wallPoints, const ViewType1D< uint32x3, memory_space > &wallVertices, const ViewType1D< realx3, memory_space > &wallNormals)
Definition: NBS.cpp:24
pFlow::ViewType1D
Kokkos::View< T *, properties... > ViewType1D
1D veiw as a vector
Definition: KokkosTypes.hpp:93
pFlow::dictionary::getVal
T getVal(const word &keyword) const
get the value of data entry
Definition: dictionary.hpp:379
pFlow::Logical
Holds a bool value and converts strings to bool.
Definition: Logical.hpp:39
pFlow::box
Definition: box.hpp:32
pFlow::dictionary
Dictionary holds a set of data entries or sub-dictionaries that are enclosed in a curely braces or ar...
Definition: dictionary.hpp:67
pFlow::pointFlag< DefaultExecutionSpace >