CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (http://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   problem with profile1DfixedValue BC (http://www.cfd-online.com/Forums/openfoam-pre-processing/73389-problem-profile1dfixedvalue-bc.html)

pinguw March 6, 2010 22:53

problem with profile1DfixedValue BC
 
Hi everyone,

I am new to OpenFOAM, C++ and Linux, I have read Userbook and tried the tutorials. Now I want to run the ERCOFTAC conical diffuser case0, but I dont know how to compile and use the profile1DfixeddValue BC. Help! Thx

I try to wmake the profile1DfixedValue today, but got this:


SOURCE=finiteVolume/fields/fvPatchFields/derived/profile1DfixedValue/profile1DRawData.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/Ping/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/Ping/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/home/Ping/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/profile1DRawData.o
In file included from finiteVolume/fields/fvPatchFields/derived/profile1DfixedValue/profile1DRawData.C:101:
finiteVolume/fields/fvPatchFields/derived/profile1DfixedValue/profile1DRawData.H: In function 鈙td::string Foam::toLower(const std::string&)?
finiteVolume/fields/fvPatchFields/derived/profile1DfixedValue/profile1DRawData.H:75: error: 鈚ransform?is not a member of 鈙td?
finiteVolume/fields/fvPatchFields/derived/profile1DfixedValue/profile1DRawData.H: At global scope:
finiteVolume/fields/fvPatchFields/derived/profile1DfixedValue/profile1DRawData.H:120: warning: type qualifiers ignored on function return type
finiteVolume/fields/fvPatchFields/derived/profile1DfixedValue/profile1DRawData.H:121: warning: type qualifiers ignored on function return type
finiteVolume/fields/fvPatchFields/derived/profile1DfixedValue/profile1DRawData.C:124: warning: type qualifiers ignored on function return type
finiteVolume/fields/fvPatchFields/derived/profile1DfixedValue/profile1DRawData.C:137: warning: type qualifiers ignored on function return type
make: *** [Make/linuxGccDPOpt/profile1DRawData.o] Error 1


I have no idea about this, any suggestions? Thank you!

Ping

bernarde September 15, 2010 05:18

Hi all

I have been working with the OpenFoamTurbo library trying to get the profile1DfixedValue boundary condition working.

I'm running OF 1.6.

I initially downoaded the 1.5 OpenFoamTurbo library, but I could not get this to compile. I then downloaded the 1.6 OpenFoamTurbo library, and this compiled fine. However, after getting the error message that the solver couldn't find the boundary value (the normal error message when your custom boundary condition library isn't found - something like:

Quote:

Cannot find 'value' entry on patch xxx of field U in file "/home/rassilon/solver_package_tests/test_case/0/U"
which is required to set the values of the generic patch field.
(Actual type "yourcustomboundaryvalue")

Please add the 'value' entry to the write function of the user-defined boundary-condition
or link the boundary-condition into libfoamUtil.so

file: /home/rassilon/solver_package_tests/test_case/0/p::wall-heater from line 59 to line 61.

From function genericFvPatchField<Type>::genericFvPatchField(con st fvPatch&, const Field<Type>&, const dictionary&)
in file fields/fvPatchFields/basic/generic/genericFvPatchField.C at line 72.
), I discovered that the profile1DfixedValue boundary condition wasn't included in the 1.6 OpenFoamTurbo library. I then tried to recompile the 1.5 version, but as before this didn't compile.

I then checked the files in the distribution, and saw that appart form profile1DfixedValue, there was an additional boundary condition, SRFZones. I removed this from the Make/files file, and then the library compiled, and I was able to run the simulation with the profile1DfixedValue boundary condition. I'm now working on the ERCOFTAC conical diffuser test case.

bernarde January 26, 2011 02:16

Cylindrical inlet velocity boundary condition
 
I was working on another problem, where I was triying to apply an inlet velocity boundary in cylindrical coordinates. I'm using OF 1.6, and I found that there was no library for this type of inlet in this release. I did find this boundary condition in the 1.7 DEV release, here:

http://foam.sourceforge.net/docs/cpp...d.php#_details

I copied these files and compiled the them in my OF - everything worked fine. I then tried to impliment the boundary condition, and again got this message (same as the one I mentioned in the previous post):

Quote:

Cannot find 'value' entry on patch xxx of field U in file "/home/somecase/tests/test_case/0/U"
which is required to set the values of the generic patch field.
(Actual type "cylindricalInletVelocity")

Please add the 'value' entry to the write function of the user-defined boundary-condition
or link the boundary-condition into libfoamUtil.so

I then linked the libfoamUtil.so in the controlDict file, but still no luck. I then simply added:

value uniform {0 0 0}

to the boundary condition, and it worked fine. This approach is mentioned here as well:

http://www.cfd-online.com/Forums/ope...tml#post246241

ArianeJasmin July 11, 2011 06:08

inletBC cylindrical coordinates
 
Hi dear foamers,

I am in a similar situation, im trying to implement a case with openFoam-1.6-ext and fixe the inlet velocity in cylindrical coordinates.
I saw that there is no way to do that with this version of openFoam.
Are you able to do your simulation with openFoam-1.6-ext?
The link that u posted is not available anymore...can you send me the files that you used to fixe the BC?
I let you my email address: ariane.jasmin@gmail.com

Thank you for your help!!

Ariane


All times are GMT -4. The time now is 17:00.