|
[Sponsors] |
Custom Boundary Condition Compiles but does not run |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 6, 2015, 15:18 |
Custom Boundary Condition Compiles but does not run
|
#1 |
New Member
Join Date: May 2015
Posts: 29
Rep Power: 11 |
Hi all,
I have a custom boundary condition which defines my mesh motion. The B.C has been compiled without any errors and I have included the .so file in my controlDict. Howerver, the solver (pimpleDyMFoam) still refuses to recognize it as a valid patch-field type. Attached below is the dropbox link to my case, and custom BCs which also contains a log file with the error. I have been through the standard openfoam discussions on this subject, but none of the suggestions there seem to work. https://www.dropbox.com/s/ox3nefq8wj...roovy.zip?dl=0 https://www.dropbox.com/s/wygbbb0jjy...Filed.zip?dl=0 |
|
August 6, 2015, 18:10 |
|
#2 |
Senior Member
anonymous
Join Date: Aug 2014
Posts: 205
Rep Power: 13 |
You have to link your library in your controlDict
libs("mylib.so"); |
|
August 6, 2015, 18:16 |
|
#3 |
New Member
Join Date: May 2015
Posts: 29
Rep Power: 11 |
As I mentioned in my original post, I have done so.
|
|
August 6, 2015, 18:23 |
|
#4 |
Senior Member
anonymous
Join Date: Aug 2014
Posts: 205
Rep Power: 13 |
Sorry didn't read correctly your post. Are you sure that the .so file appears in your $FOAM_USER_LIBBIN or $FOAM_LIBBIN directories?
|
|
August 6, 2015, 18:24 |
|
#5 |
New Member
Join Date: May 2015
Posts: 29
Rep Power: 11 |
Yes, it appears in the $FOAM_USER_LIBBIN. I have confirmed it multiple times. Could you try compiling the BC and running it?
|
|
August 7, 2015, 06:27 |
|
#6 |
Member
Join Date: May 2014
Posts: 40
Rep Power: 12 |
Did you search & replace all the old BC-names with the new ones in the source files?
Better check all the steps given in the following post: http://www.cfd-online.com/Forums/ope...tml#post245761 Good luck |
|
August 7, 2015, 07:52 |
|
#7 |
Senior Member
anonymous
Join Date: Aug 2014
Posts: 205
Rep Power: 13 |
As I can see you are using in your pointMotionU file:
Code:
type myRelativeVelocityPointPatchVectorField; Code:
TypeName("myRelativeVelocity"); Code:
type myRelativeVelocity; |
|
August 7, 2015, 14:36 |
|
#8 | ||||
New Member
Join Date: May 2015
Posts: 29
Rep Power: 11 |
Hi ssss,
Thanks, a lot. It has apparently compiled and now runs correctly, but a new error crops up. Quote:
Quote:
Quote:
Quote:
|
|||||
August 7, 2015, 16:36 |
|
#9 |
Senior Member
anonymous
Join Date: Aug 2014
Posts: 205
Rep Power: 13 |
The value token needs to be set for every boundary condition, so don't worry, it wont be used in your custom BC. Just set value uniform 0 or whichever value you prefer
|
|
August 7, 2015, 17:49 |
|
#10 |
New Member
Join Date: May 2015
Posts: 29
Rep Power: 11 |
SSSS,
Whoever you are, I wish to thank you from the bottom of my heart. You've just cleared a month of logjammed work for me. Everything works as advertised. I guess I have to brush up my advanced C++ knowledge. |
|
Tags |
boundary condition, custom field function, pimpledymfoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Time dependant pressure boundary condition | yosuke1984 | OpenFOAM Verification & Validation | 3 | May 6, 2015 07:16 |
Radiation interface | hinca | CFX | 15 | January 26, 2014 18:11 |
CFX fails to calculate a diffuser pipe flow | shenying0710 | CFX | 7 | March 26, 2013 05:13 |
warning message with custom boundary condition during decomposePar | romant | OpenFOAM Programming & Development | 2 | June 9, 2011 03:16 |
RPM in Wind Turbine | Pankaj | CFX | 9 | November 23, 2009 05:05 |