CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

problem with profile1DfixedValue BC

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 6, 2010, 21:53
Default problem with profile1DfixedValue BC
  #1
New Member
 
Join Date: Mar 2010
Posts: 1
Rep Power: 0
pinguw is on a distinguished road
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

Last edited by pinguw; March 6, 2010 at 22:38.
pinguw is offline   Reply With Quote

Old   September 15, 2010, 05:18
Default
  #2
Member
 
Bernard Esterhuyse
Join Date: Mar 2009
Location: Pretoria, South Africa
Posts: 50
Rep Power: 17
bernarde is on a distinguished road
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 is offline   Reply With Quote

Old   January 26, 2011, 01:16
Default Cylindrical inlet velocity boundary condition
  #3
Member
 
Bernard Esterhuyse
Join Date: Mar 2009
Location: Pretoria, South Africa
Posts: 50
Rep Power: 17
bernarde is on a distinguished road
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
bernarde is offline   Reply With Quote

Old   July 11, 2011, 06:08
Default inletBC cylindrical coordinates
  #4
New Member
 
Join Date: May 2011
Posts: 3
Rep Power: 14
ArianeJasmin is on a distinguished road
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
ArianeJasmin is offline   Reply With Quote

Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 04:43
Incoherent problem table in hollow-fiber spinning Gianni FLUENT 0 April 5, 2008 10:33
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 06:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 19:13
Is this problem well posed? Thomas P. Abraham Main CFD Forum 5 September 8, 1999 14:52


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