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

Problems implementing new Boundary Condition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 27, 2011, 12:33
Default Problems implementing new Boundary Condition
  #1
New Member
 
Diego Sene Alves
Join Date: Aug 2011
Posts: 7
Rep Power: 15
diegosene is on a distinguished road
Hello guys, I am quite new in OpenFoam.
I am trying to implement a new Boundary condition.
when I try to run the solver in a case using the new boundary condition. I get this error

--> FOAM FATAL IO ERROR:
Unknown patchField type eulerWT for patch type patch

it cant load the library from the new BC.

I already compiled the BC with no errors.
I even tried to take the solver folder and link it to the BC.
I compiled the solver with no erros and the BC with no errors.
i wrote the lybrary in the controlDict file and wrote the name of the BC in the 0/p file.(for example, for the pressure in Outlet)..

and when i run blockMesh i get this
--> FOAM Warning :
From function dlLibraryTable:pen(const fileName&, const bool)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 96
could not load "libeulerWTBC.so"


Someone knows what´s going on?

Thanks in advance
diegosene is offline   Reply With Quote

Old   October 27, 2011, 12:34
Default
  #2
New Member
 
Diego Sene Alves
Join Date: Aug 2011
Posts: 7
Rep Power: 15
diegosene is on a distinguished road
i forgot to say that i checked all the writting a thousand times. there is no typo errors
diegosene is offline   Reply With Quote

Old   October 27, 2011, 12:47
Default
  #3
Senior Member
 
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22
marupio is on a distinguished road
1. Does your controlDict include:
Code:
libs ( "libcustomBoundaryConditions.so" "libOpenFOAM.so" );
where customBoundaryConditions.so is whatever you named the library with your custom boundary condition.

2. Is it actually loading this library? At the very start of your output, if it fails to load your custom boundary condition library, it will print a Warning to the console. Look for this warning.

3. Does the name in your initial condition file match that of the one you gave to the boundary condition?

In the custom boundary condition, you need to have:
Code:
TypeName("eulerWT");
not:
Code:
TypeName("eulerWTFvScalarPatchField");
or anything like that.

That's all I can think of.
__________________
~~~
Follow me on twitter @DavidGaden
marupio is offline   Reply With Quote

Old   October 28, 2011, 12:52
Default
  #4
Senior Member
 
David Boger
Join Date: Mar 2009
Location: Penn State Applied Research Laboratory
Posts: 146
Rep Power: 17
boger is on a distinguished road
If you look at this post, I have a suggestion there for slightly modifying OpenFOAM to get some more information about why the library wouldn't load. In the meantime, this has been added by OpenCFD to the current version of OpenFOAM 2.0.x:
Code:
commit 0751ac3493413df71369f61a8ec608c00808822e
Author: mattijs <mattijs>
Date:   Mon Oct 24 19:37:40 2011 +0100

    ENH: dlLibraryTable: use dlError if library cannot be loaded
__________________
David A. Boger
boger is offline   Reply With Quote

Old   October 28, 2011, 13:03
Default
  #5
Senior Member
 
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22
marupio is on a distinguished road
That's right! Thanks for reminding me, David. If you recently upgraded to gcc 4.6.1, there are linking problems that are resolved in the latest patch. This would cause these problems. See this thread:

http://www.cfd-online.com/Forums/ope...u-11-10-a.html
__________________
~~~
Follow me on twitter @DavidGaden
marupio is offline   Reply With Quote

Old   October 31, 2011, 22:32
Default
  #6
skn
New Member
 
Sany
Join Date: Oct 2011
Posts: 1
Rep Power: 0
skn is on a distinguished road
I want to setup line-tying boundary condition for a cylindrical flux tube. I need to solve induction equation dB/dt=curl(vxB) at the foot point(for z=0 and L). The magnetic field component B_z is constant and normal velocity v_z=0. The tube axis is along Z-direction. Kindly help me. I am new in this area.
skn is offline   Reply With Quote

Reply

Tags
boundary condition, errors, problem


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
Wind turbine simulation Saturn CFX 60 July 17, 2024 06:45
mixed inflow/outflow downstream boundary condition question peob OpenFOAM Running, Solving & CFD 3 February 3, 2017 11:54
External Radiation Boundary Condition for Grid Interface CFD XUE FLUENT 0 July 9, 2010 03:53
External Radiation Boundary Condition (Two sided wall), Grid Interface CFD XUE FLUENT 0 July 8, 2010 07:49
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 05:15


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