|
[Sponsors] |
October 27, 2011, 12:33 |
Problems implementing new Boundary Condition
|
#1 |
New Member
Diego Sene Alves
Join Date: Aug 2011
Posts: 7
Rep Power: 15 |
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 |
|
October 27, 2011, 12:34 |
|
#2 |
New Member
Diego Sene Alves
Join Date: Aug 2011
Posts: 7
Rep Power: 15 |
i forgot to say that i checked all the writting a thousand times. there is no typo errors
|
|
October 27, 2011, 12:47 |
|
#3 |
Senior Member
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22 |
1. Does your controlDict include:
Code:
libs ( "libcustomBoundaryConditions.so" "libOpenFOAM.so" ); 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"); Code:
TypeName("eulerWTFvScalarPatchField"); That's all I can think of.
__________________
~~~ Follow me on twitter @DavidGaden |
|
October 28, 2011, 12:52 |
|
#4 |
Senior Member
David Boger
Join Date: Mar 2009
Location: Penn State Applied Research Laboratory
Posts: 146
Rep Power: 17 |
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 |
|
October 28, 2011, 13:03 |
|
#5 |
Senior Member
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22 |
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 |
|
October 31, 2011, 22:32 |
|
#6 |
New Member
Sany
Join Date: Oct 2011
Posts: 1
Rep Power: 0 |
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.
|
|
Tags |
boundary condition, errors, problem |
|
|
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 |