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

cannot find function definition in openfoam

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 11, 2012, 20:39
Default cannot find function definition in openfoam
  #1
Member
 
Join Date: Jun 2012
Posts: 65
Rep Power: 13
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, 09:32
Default
  #2
Member
 
Florian
Join Date: Nov 2009
Posts: 59
Rep Power: 16
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, 18:18
Default
  #3
Member
 
Join Date: Jun 2012
Posts: 65
Rep Power: 13
conceptone is on a distinguished road
Ok , I got it. Thanks very much!
conceptone is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 03:02.