CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Identify unknown function (boundMinMax) and include Header file (http://www.cfd-online.com/Forums/openfoam-programming-development/89837-identify-unknown-function-boundminmax-include-header-file.html)

sega June 23, 2011 06:12

Identify unknown function (boundMinMax) and include Header file
 
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

wyldckat June 24, 2011 18:31

Hi sega,

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

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

sega June 25, 2011 03:08

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.

wyldckat June 25, 2011 05:52

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


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