|
[Sponsors] |
Pesky "Warnings" with custom boundary condition |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 19, 2022, 14:33 |
Pesky "Warnings" with custom boundary condition
|
#1 |
New Member
Charlie L
Join Date: Aug 2019
Posts: 1
Rep Power: 0 |
Using OF10, ubuntu 22.04. I implemented a modified dynamic contact angle model, based on the standard OF model dynamicAlphaContactAngle. The modified model myDynamicContactAngle compiles & runs. wmake installed it in $FOAM_USER_LIBBIN and I included in controlDict as:
libs ("libmyDynamicContactAngle.so" "libOpenFOAM.so"); As long as the libs command is active in controlDict I get the following warning when I run every OF application (blockMesh, decomposePar, paraFoam etc.): --> FOAM Warning : From function void* Foam::dlOpen(const Foam::fileName&, bool) in file POSIX.C at line 1247 dlopen error : /opt/openfoam10/platforms/linux64GccDPInt32Opt/lib/libtwoPhaseMixture.so: undefined symbol: _ZN4Foam18physicalProperties8typeNameE --> FOAM Warning : From function bool Foam::dlLibraryTable::open(const Foam::fileName&, bool) in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 106 could not load "libmyDynamicContactAngle.so" I've been ignoring the warning, but I'd like to understand and correct (if possible) whatever is going wrong. I examined line 1247 in POSIX.C and line 106 in dlLibraryTable.C but all I found were the error message output statements. No trail of bread crumbs back to the problem. When I created the new model I copied dynamicAlpha etc. .C and .H to my user src directory, and I modified and/or added the necessary includes, and did the same for wmake. Here are the wmake files: options: EXE_INC = \ -I$(LIB_SRC)/twoPhaseModels/twoPhaseProperties/lnInclude \ -I$(LIB_SRC)/twoPhaseModels/twoPhaseMixture/lnInclude \ -I$(LIB_SRC)/twoPhaseModels/interfaceProperties/lnInclude \ -I$(LIB_SRC)/finiteVolume/lnInclude LIB_LIBS = \ -ltwoPhaseProperties \ -ltwoPhaseMixture \ -linterfaceProperties \ -lfiniteVolume files: myDynamicContactAngle/myDynamicContactAngleFvPatchScalarField.C LIB = $(FOAM_USER_LIBBIN)/libmyDynamicContactAngle Note in options I had to include /twoPhaseModels/twoPhaseProperties to get the code to compile, this is not used in OF's dynamicAlpha etc. Any suggestions? Thanks, Charlie |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Question about adaptive timestepping | Guille1811 | CFX | 25 | November 12, 2017 17:38 |
Centrifugal fan-reverse flow in outlet lesds to a mass in flow field | xiexing | CFX | 3 | March 29, 2017 10:00 |
Error - Solar absorber - Solar Thermal Radiation | MichaelK | CFX | 12 | September 1, 2016 05:15 |
Basic Nozzle-Expander Design | karmavatar | CFX | 20 | March 20, 2016 08:44 |
Question about heat transfer coefficient setting for CFX | Anna Tian | CFX | 1 | June 16, 2013 06:28 |