|
[Sponsors] |
August 11, 2012, 20:39 |
cannot find function definition in openfoam
|
#1 |
Member
Join Date: Jun 2012
Posts: 65
Rep Power: 13 |
Hi everyone, I am running the sprayFoam case and set the mass equal to one particle(very small mass) to see some problem. However, I met the floating error problem and by debug version I found it was caused by parcelsToInject fuction:
return floor((time1 - time0)*parcelsPerSecond_); so I want to see the definition of floor function, however I didn't find the definition under src directory using the linux command:find .|xargs grep "floor". This command can find any file including the word "floor".So how can I find the function definition? Thanks |
|
August 12, 2012, 09:32 |
|
#2 |
Member
Florian
Join Date: Nov 2009
Posts: 59
Rep Power: 16 |
It's probably the C++ stdlib function, included from cmath:
http://www.cplusplus.com/reference/c...y/cmath/floor/ |
|
August 12, 2012, 18:18 |
|
#3 |
Member
Join Date: Jun 2012
Posts: 65
Rep Power: 13 |
Ok , I got it. Thanks very much!
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Parabolic inlet velocity profile | msrinath80 | OpenFOAM Running, Solving & CFD | 157 | February 6, 2020 06:13 |
compressible flow in turbocharger | riesotto | OpenFOAM | 50 | May 26, 2014 02:47 |
probes function not working in Openfoam 2.1.1 | nandiganavishal | OpenFOAM | 7 | July 26, 2012 12:06 |
LiencubiclowRemodel | nzy102 | OpenFOAM Bugs | 14 | January 10, 2012 09:53 |
Problem with rhoSimpleFoam | matteo_gautero | OpenFOAM Running, Solving & CFD | 0 | February 28, 2008 07:51 |