CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

cannot find function definition in openfoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   August 11, 2012, 19:39
Default cannot find function definition in openfoam
  #1
Member
 
Join Date: Jun 2012
Posts: 65
Rep Power: 5
conceptone is on a distinguished road
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
conceptone is offline   Reply With Quote

Old   August 12, 2012, 08:32
Default
  #2
Member
 
Florian
Join Date: Nov 2009
Posts: 59
Rep Power: 7
Horus is on a distinguished road
It's probably the C++ stdlib function, included from cmath:

http://www.cplusplus.com/reference/c...y/cmath/floor/
Horus is offline   Reply With Quote

Old   August 12, 2012, 17:18
Default
  #3
Member
 
Join Date: Jun 2012
Posts: 65
Rep Power: 5
conceptone is on a distinguished road
Ok , I got it. Thanks very much!
conceptone is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
compressible flow in turbocharger riesotto OpenFOAM 50 May 26, 2014 01:47
Parabolic inlet velocity profile msrinath80 OpenFOAM Running, Solving & CFD 156 January 2, 2014 19:17
probes function not working in Openfoam 2.1.1 nandiganavishal OpenFOAM 7 July 26, 2012 11: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


All times are GMT -4. The time now is 04:34.