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

Problems implementing new Boundary Condition

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 27, 2011, 11:33
Default Problems implementing new Boundary Condition
  #1
New Member
 
Diego Sene Alves
Join Date: Aug 2011
Posts: 7
Rep Power: 5
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, 11:34
Default
  #2
New Member
 
Diego Sene Alves
Join Date: Aug 2011
Posts: 7
Rep Power: 5
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, 11:47
Default
  #3
Senior Member
 
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 397
Rep Power: 12
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, 11:52
Default
  #4
Senior Member
 
David Boger
Join Date: Mar 2009
Location: Penn State Applied Research Laboratory
Posts: 146
Rep Power: 8
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, 12:03
Default
  #5
Senior Member
 
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 397
Rep Power: 12
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:

OpenFOAM-2.0.x on Ubuntu 11.10
__________________
~~~
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wind turbine simulation Saturn CFX 34 October 16, 2014 05:27
mixed inflow/outflow downstream boundary condition question peob OpenFOAM Running, Solving & CFD 2 August 14, 2014 09:07
External Radiation Boundary Condition for Grid Interface CFD XUE FLUENT 0 July 9, 2010 02:53
External Radiation Boundary Condition (Two sided wall), Grid Interface CFD XUE FLUENT 0 July 8, 2010 06:49
Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 2 July 15, 2005 04:15


All times are GMT -4. The time now is 07:29.