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

where can I find functions definition in OF?

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

Like Tree4Likes
  • 1 Post By Hisham
  • 1 Post By mm.abdollahzadeh
  • 2 Post By Hisham

Reply
 
LinkBack Thread Tools Display Modes
Old   January 23, 2013, 09:57
Default where can I find functions definition in OF?
  #1
Member
 
Ali Khalifesoltani
Join Date: Mar 2011
Location: Esfahan, Iran
Posts: 52
Rep Power: 6
asoltoon is on a distinguished road
Hello guys,
I wanna see some function definitions in KEpsilon.C, but I don't know where it is. I'v also searched in the OpenFoam.org 's C++ source guide but it was not useful.
I would be grateful if anybody could help me.

Thanks in advance.
asoltoon is offline   Reply With Quote

Old   January 23, 2013, 10:12
Default
  #2
Senior Member
 
Hisham's Avatar
 
Hisham El Safti
Join Date: Apr 2011
Location: Braunschweig, Germany
Posts: 247
Blog Entries: 10
Rep Power: 8
Hisham is on a distinguished road
Hello Ali

What do you mean by definition: the code or some explanation?

Is there a specific function that you are searching for?

Best regards,
Hisham
Hisham is offline   Reply With Quote

Old   January 23, 2013, 11:14
Default
  #3
Member
 
Ali Khalifesoltani
Join Date: Mar 2011
Location: Esfahan, Iran
Posts: 52
Rep Power: 6
asoltoon is on a distinguished road
Hello Hisham,
I mean the code implementation. There is lots of functions I would like to see their code, but for instance how I could find the DkEff() implementation. The function is used in KEpsilon.C.

Thanks
asoltoon is offline   Reply With Quote

Old   January 23, 2013, 14:05
Default
  #4
Senior Member
 
Hisham's Avatar
 
Hisham El Safti
Join Date: Apr 2011
Location: Braunschweig, Germany
Posts: 247
Blog Entries: 10
Rep Power: 8
Hisham is on a distinguished road
Quote:
Originally Posted by asoltoon View Post
Hello Hisham,
I mean the code implementation. There is lots of functions I would like to see their code, but for instance how I could find the DkEff() implementation. The function is used in KEpsilon.C.

Thanks
You just press on any link that says:
Definition at line 185 of file kEpsilon.C.

the kEpsilon.C link will take you to:
http://foam.sourceforge.net/docs/cpp/a08551_source.html
mm.abdollahzadeh likes this.
Hisham is offline   Reply With Quote

Old   January 23, 2013, 15:00
Default
  #5
Member
 
Ali Khalifesoltani
Join Date: Mar 2011
Location: Esfahan, Iran
Posts: 52
Rep Power: 6
asoltoon is on a distinguished road
But line 185 of the link that you mentioned doesn't point to the implementation of the DkEff() function. This function is declared at line 253 of kEpsilon.C & its implementation should be in another class I think. and when I click on the function colored in blue (at line 253), the opened page doesn't show me the function's code.

Thanks for your reply man
asoltoon is offline   Reply With Quote

Old   January 23, 2013, 15:43
Default
  #6
Senior Member
 
mahdi abdollahzadeh
Join Date: Mar 2011
Location: Covilha,Portugal
Posts: 149
Rep Power: 6
mm.abdollahzadeh is on a distinguished road
Quote:
Originally Posted by asoltoon View Post
But line 185 of the link that you mentioned doesn't point to the implementation of the DkEff() function. This function is declared at line 253 of kEpsilon.C & its implementation should be in another class I think. and when I click on the function colored in blue (at line 253), the opened page doesn't show me the function's code.

Thanks for your reply man
Hi

you could find the definition in

Definition at line 129 of file kEpsilon.H.

Cheers
mahdi
asoltoon likes this.
mm.abdollahzadeh is offline   Reply With Quote

Old   January 23, 2013, 16:55
Default
  #7
Senior Member
 
Hisham's Avatar
 
Hisham El Safti
Join Date: Apr 2011
Location: Braunschweig, Germany
Posts: 247
Blog Entries: 10
Rep Power: 8
Hisham is on a distinguished road
@ mahdi .. thanks

@ all: Sorry .. I just meant to tell you that the file is accessible from such lines that says definition at line ....

I hope this wasn't confusing ...


You can also find the function in your computer by going to the source code directory and typing:
Code:
grep -iIr "DkEff" .
and don't forget the "."

and then use Ctrl+f to search for the function inside the file after you open it with your text editor

Hisham
Pascal_doran and asoltoon like this.
Hisham 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
Wall functions for near wall treatment : k - epsilon model fivos Main CFD Forum 4 April 27, 2011 07:44
Need help to use Hermite basis functions Vasilis Main CFD Forum 8 October 29, 2009 14:26
Wall functions tutlhino OpenFOAM Pre-Processing 0 July 2, 2007 05:04
When I use the wall functions....! maximus Main CFD Forum 7 January 20, 2003 10:35
N-S equations:divergence free functions? D. Puigjaner Main CFD Forum 1 July 27, 2000 12:43


All times are GMT -4. The time now is 08:30.