9650aff318
protect against division by zero
...
merged from PUBLIC
2017-08-28 15:41:44 +02:00
d5fbf402cb
fix missing include
2017-08-28 15:37:16 +02:00
1b9f7020ac
fix parameter in function call
2017-08-28 15:30:51 +02:00
68d9035225
clean up formatting, add some comments
2017-08-28 14:20:51 +02:00
2230dcaa57
rearrange code in MeiLift to save some operations
2017-08-28 12:32:11 +02:00
6e23baba7f
fix Mei lift force
...
The equation was probably taken from the paper of Kurose and Komori
1999, which does not repoduce the original formula given by Mei 1992
correctly (which itself is missing a left parenthesis).
The correct formula can be looked up for example in Mei and Klausner
1994 or Loth and Dorgan 2009
2017-08-25 14:33:50 +02:00
bf0ff235b6
use proper data type for counters
2017-08-24 17:19:24 +02:00
e6d12f6790
make debug info live in separate block
2017-08-24 17:18:40 +02:00
9a1abb5f19
clean up whitespaces in mathExtra.H
2017-08-24 17:07:33 +02:00
8df363cf97
add some mathematical constants
...
cf. OpenFOAM mathematicalConstants.H
2017-08-24 17:06:23 +02:00
5b8072b11a
Merge pull request #27 from ParticulateFlow/feature/cherry_pick_PUBLIC
...
Feature/cherry pick public
2017-08-24 16:17:53 +02:00
2e2701ccf7
remove unneeded parameter finaliser from IOModel::streamDataToPath
2017-08-24 09:58:01 +02:00
5e7b332dd9
clean up whitespaces
2017-08-23 18:02:29 +02:00
adc79029a1
use actual cell id of particles instead of dummy finaliser string
2017-08-23 18:01:22 +02:00
ad6a169ffd
output position as position type instead of vector type
2017-08-23 18:00:00 +02:00
53d0988a4e
IOModel::streamDataToPath - separate handling of position and vector
...
vector needs no finaliser
2017-08-23 17:58:41 +02:00
165a2b9611
no need for finalizer in case of 'label'
2017-08-23 17:55:57 +02:00
2e4c93f8ee
use info from OFstream to create output file header
2017-08-23 17:52:51 +02:00
668b85582b
simplify logic
...
don't waste any time if type == "origProcId"
2017-08-23 17:50:22 +02:00
6343a6a09c
create OFstream on stack instead of heap
2017-08-23 17:45:58 +02:00
76b90cc3cc
remove unnecessary copy to temp vector
2017-08-23 17:40:17 +02:00
bce10d17c1
clean up whitespaces
2017-08-23 17:36:22 +02:00
dd2e21be64
create OFstream on stack instead of heap
2017-08-23 17:35:08 +02:00
8f11235d08
update make options for compressible library
...
use same flags as for incompressible library
2017-08-22 13:15:13 +02:00
579264952f
remove unneeded includes
2017-08-21 13:17:52 +02:00
116bf952ab
remove commented out code
2017-08-21 13:17:26 +02:00
1213c90a50
clean up whitespaces and formatting
2017-08-21 13:09:33 +02:00
b2b3363104
add procBoundaryCorrection for dividedVoidfraction in case of engineIB
2017-08-21 12:40:10 +02:00
8b6222ba79
remove method no longer needed
...
using base class method
2017-08-21 12:34:45 +02:00
8e73260cb4
limit voidfractionNext and scale to values >= 0
2017-08-21 12:33:02 +02:00
777a9e06ec
refactor IBVoidFraction class
...
move duplicate to separate function
2017-08-21 12:32:09 +02:00
4ac84930c5
add braces
2017-08-21 12:24:25 +02:00
10fd332943
correct boundary conditions of voidfraction field
...
correct BCs after modifying the voidfraction field
2017-08-21 12:23:41 +02:00
3dc7b6a150
pre-generate marker points in dividedVoidFraction class
...
generate marker points for unit sphere once and just scale these points
for each particle instead of constantly recalculating them
2017-08-18 11:35:30 +02:00
3f8885c9b7
add functions to get min dist of point to periodic particle image
...
add functions to voidFractionModel class to determine minimal distance
of a point to one of the periodic images of a particle
2017-08-17 17:13:16 +02:00
dc3f93f401
change cg incompatibility error to warning by default
...
added switch 'cgWarnOnly' to choose between warning (default) and error
2017-08-17 16:50:51 +02:00
5f123bb6a1
use flag from cfdemCloud for checking periodic cells in dividedVoidFraction class
2017-08-17 16:34:56 +02:00
123280958b
use flag from cfdemCloud for checking periodic cells in IBVoidFraction class
2017-08-17 16:33:43 +02:00
1a98e6eaee
determine necessity of periodic cell check in cfdemCloud class
...
only check for periodic cells in submodels if all boundary patches are
cyclic
2017-08-17 16:30:09 +02:00
807c6e30e7
fix memory leak
...
anything new shall be deleted;
2017-08-17 15:09:40 +02:00
1b51d5ce21
proper member initialization
...
allocating memory of zero size will produce useless pointer
set to NULL instead
2017-08-17 15:09:39 +02:00
fd6d9164c4
remove unneeded checks
...
according to standard, freeing a null pointer is a nop
some archaic C runtimes may have crashed on it in times long past
2017-08-17 15:09:39 +02:00
ec5ed28885
construct field as copy resetting name
2017-08-17 15:09:39 +02:00
df1be8e004
add trilinear void fraction source file to make file
2017-08-17 15:09:39 +02:00
a4bf2fdd42
add range check for imExSplitFactor value
2017-08-17 15:09:39 +02:00
ee06cc84cb
construct field as copy resetting name
2017-08-17 15:09:39 +02:00
2c05e6e65f
add trilinear void fraction model from PUBLIC
2017-08-17 15:09:39 +02:00
36d5805d2a
shorter access methods
2017-08-17 15:09:39 +02:00
ab49a51003
const correctness
2017-08-17 15:09:39 +02:00
5563b9bd9c
fix bug introduced in 13da1dd890
...
methods must have same const qualifier as in base class
2017-08-17 15:09:39 +02:00