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

Identify unknown function (boundMinMax) and include Header file

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 23, 2011, 06: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: 11
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, 18:31
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
wyldckat is offline   Reply With Quote

Old   June 25, 2011, 03:08
Default
  #3
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 11
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, 05:52
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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 05:53. Reason: "simply" was repeated
wyldckat is offline   Reply With Quote

Reply

Tags
boundminmax

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



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