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

Identify unknown function (boundMinMax) and include Header file

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

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 23, 2011, 07:12
Default Identify unknown function (boundMinMax) and include Header file
  #1
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20
sega is on a distinguished road
Hello World.

I have a function which definition is unknown while compiling the code.

Is is called boundMinMax and takes three inputs.

Does anybody know which H.-file I have to include to make the compilation work?

Thanks
sega
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Old   June 24, 2011, 19:31
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi sega,

You could have at least mentioned the OpenFOAM version you were using!

According to google:
Quote:
Originally Posted by google "boundMinMax"
ftp://ftp.ux.uis.no/pub/Linux/UiS/x/OpenFOAM/OpenFOAM-1.5-dev/src/finiteVolume/lnInclude/bound.H
A bit of digging and it's the same for 1.6-ext.

Best regards,
Bruno
Tobi likes this.
__________________
wyldckat is offline   Reply With Quote

Old   June 25, 2011, 04:08
Default
  #3
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20
sega is on a distinguished road
Yes, Sorry.

I'm using version 1.7.1 in which boundMinMax is not included in bound.H any more. Instead there is only the function bound, which looks like having a different kind of input.

Do you know how the new bound-function works?

S.
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Old   June 25, 2011, 06:52
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Sebastian,

Oddly enough, the official OpenFOAM apparently can survive without bounding the maximum value. It has done this since at least version 1.4.1. And the bound function works as simply as if were named boundMin; bound also exists in 1.5-dev and 1.6-ext.

So, basically, if your code already uses boundMinMax, then take out the maximum value. But if you see it still needs to bind the maximum value, either reimplement the code from the OpenFOAM variant -dev or -ext, or negate the scalar field and bind the negative maximum to it!


I did a bit more digging and found that boundMinMax is only used in "src/sampling/boundField/boundField.C" in 1.5-dev and 1.6-ext... so no wonder that only bound exists in the original code, as well as in the variants...

Best regards,
Bruno
__________________

Last edited by wyldckat; June 25, 2011 at 06:53. Reason: "simply" was repeated
wyldckat is offline   Reply With Quote

Reply

Tags
boundminmax

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



All times are GMT -4. The time now is 21:33.