errors when trying to use swakCoded-function
Hi,
I have OpenFOAM-2.2.2 on my laptop with Ubuntu 12.04 LTS. I downloaded swak4Foam from the following link: https://github.com/wyldckat/swak4foam/tree/OF22X (it's already patched for building with OpenFOAM 2.2.x.) and installed on my laptop. Everything is working fine, right from installation to loading libraries while running simulations. I have OpenFOAM-2.2.2 on cluster running RHEL(Red Hat Enterprise Linux). I used the same swak4Foam files downloaded from above source. I compiled it with bison-2.7 and flex-2.5.35 by putting in my swak4Foam directory as mentioned on this page:http://openfoamwiki.net/index.php/In...g_dependencies The compilation went smooth. Below is the log when I type in ./Allwmake in swak4Foam folder: No 'swakConfiguration'. Python etc won't work Checking swak4Foam-version and generating file Swak version is 0.2.4 Bison is version 2.7 Flex is version 2.5.35 (Minor version: 35) OpenFOAM-version: Major 2 Minor 2 Patch 2 (-1 == x) No change to swak4FoamParsers/foamVersion4swak.H '/share/mvaish/OpenFOAM/mvaish-2.2.2/platforms/linux64GccDPOpt/lib/libswak4FoamParsers.so' is up to date. '/share/mvaish/OpenFOAM/mvaish-2.2.2/platforms/linux64GccDPOpt/lib/libgroovyBC.so' is up to date. '/share/mvaish/OpenFOAM/mvaish-2.2.2/platforms/linux64GccDPOpt/lib/libswakFunctionObjects.so' is up to date. '/share/mvaish/OpenFOAM/mvaish-2.2.2/platforms/linux64GccDPOpt/lib/libsimpleFunctionObjects.so' is up to date. '/share/mvaish/OpenFOAM/mvaish-2.2.2/platforms/linux64GccDPOpt/lib/libsimpleLagrangianFunctionObjects.so' is up to date. '/share/mvaish/OpenFOAM/mvaish-2.2.2/platforms/linux64GccDPOpt/lib/libsimpleSearchableSurfaces.so' is up to date. '/share/mvaish/OpenFOAM/mvaish-2.2.2/platforms/linux64GccDPOpt/lib/libsimpleSwakFunctionObjects.so' is up to date. '/share/mvaish/OpenFOAM/mvaish-2.2.2/platforms/linux64GccDPOpt/lib/libswakTopoSources.so' is up to date. '/share/mvaish/OpenFOAM/mvaish-2.2.2/platforms/linux64GccDPOpt/lib/libswakSourceFields.so' is up to date. '/share/mvaish/OpenFOAM/mvaish-2.2.2/platforms/linux64GccDPOpt/lib/libgroovyStandardBCs.so' is up to date. SWAK_PYTHON_INCLUDE not defined .... no Python-Integration '/share/mvaish/OpenFOAM/mvaish-2.2.2/platforms/linux64GccDPOpt/lib/libswakMeshQualityFunctionPlugin.so' is up to date. '/share/mvaish/OpenFOAM/mvaish-2.2.2/platforms/linux64GccDPOpt/lib/libswakLocalCalculationsFunctionPlugin.so' is up to date. '/share/mvaish/OpenFOAM/mvaish-2.2.2/platforms/linux64GccDPOpt/lib/libswakRandomFunctionPlugin.so' is up to date. '/share/mvaish/OpenFOAM/mvaish-2.2.2/platforms/linux64GccDPOpt/lib/libswakFvcSchemesFunctionPlugin.so' is up to date. '/share/mvaish/OpenFOAM/mvaish-2.2.2/platforms/linux64GccDPOpt/lib/libswakThermoTurbFunctionPlugin.so' is up to date. '/share/mvaish/OpenFOAM/mvaish-2.2.2/platforms/linux64GccDPOpt/lib/libswakTransportTurbFunctionPlugin.so' is up to date. '/share/mvaish/OpenFOAM/mvaish-2.2.2/platforms/linux64GccDPOpt/lib/libswakSurfacesAndSetsFunctionPlugin.so' is up to date. '/share/mvaish/OpenFOAM/mvaish-2.2.2/platforms/linux64GccDPOpt/lib/libswakLagrangianCloudSourcesFunctionPlugin.so' is up to date. '/share/mvaish/OpenFOAM/mvaish-2.2.2/platforms/linux64GccDPOpt/lib/libswakVelocityFunctionPlugin.so' is up to date. '/share/mvaish/OpenFOAM/mvaish-2.2.2/platforms/linux64GccDPOpt/lib/libswakChemistryModelFunctionPlugin.so' is up to date. '/share/mvaish/OpenFOAM/mvaish-2.2.2/platforms/linux64GccDPOpt/lib/libswakRadiationModelFunctionPlugin.so' is up to date. make[1]: Entering directory `/share/mvaish/OpenFOAM/mvaish-2.2.2/run/swak4foam-OF22X/Utilities/calcNonUniformOffsetsForMapped' make[1]: `/share/mvaish/OpenFOAM/mvaish-2.2.2/platforms/linux64GccDPOpt/bin/calcNonUniformOffsetsForMapped' is up to date. make[1]: Leaving directory `/share/mvaish/OpenFOAM/mvaish-2.2.2/run/swak4foam-OF22X/Utilities/calcNonUniformOffsetsForMapped' make[1]: Entering directory `/share/mvaish/OpenFOAM/mvaish-2.2.2/run/swak4foam-OF22X/Utilities/funkyDoCalc' make[1]: `/share/mvaish/OpenFOAM/mvaish-2.2.2/platforms/linux64GccDPOpt/bin/funkyDoCalc' is up to date. make[1]: Leaving directory `/share/mvaish/OpenFOAM/mvaish-2.2.2/run/swak4foam-OF22X/Utilities/funkyDoCalc' make[1]: Entering directory `/share/mvaish/OpenFOAM/mvaish-2.2.2/run/swak4foam-OF22X/Utilities/funkySetBoundaryField' make[1]: `/share/mvaish/OpenFOAM/mvaish-2.2.2/platforms/linux64GccDPOpt/bin/funkySetBoundaryField' is up to date. make[1]: Leaving directory `/share/mvaish/OpenFOAM/mvaish-2.2.2/run/swak4foam-OF22X/Utilities/funkySetBoundaryField' make[1]: Entering directory `/share/mvaish/OpenFOAM/mvaish-2.2.2/run/swak4foam-OF22X/Utilities/funkySetFields' make[1]: `/share/mvaish/OpenFOAM/mvaish-2.2.2/platforms/linux64GccDPOpt/bin/funkySetFields' is up to date. make[1]: Leaving directory `/share/mvaish/OpenFOAM/mvaish-2.2.2/run/swak4foam-OF22X/Utilities/funkySetFields' make[1]: Entering directory `/share/mvaish/OpenFOAM/mvaish-2.2.2/run/swak4foam-OF22X/Utilities/replayTransientBC' make[1]: `/share/mvaish/OpenFOAM/mvaish-2.2.2/platforms/linux64GccDPOpt/bin/replayTransientBC' is up to date. make[1]: Leaving directory `/share/mvaish/OpenFOAM/mvaish-2.2.2/run/swak4foam-OF22X/Utilities/replayTransientBC' If you want to use swakCoded-function object or compile software based on swak set the environment variable SWAK4FOAM_SRC to /share/mvaish/OpenFOAM/mvaish-2.2.2/run/swak4foam-OF22X/Libraries (most people will be fine without setting that variable) But when I run the case I get following error: Create time --> FOAM Warning : From function dlOpen(const fileName&, const bool) in file POSIX.C at line 1179 dlopen error : libsimpleSwakFunctionObjects.so: cannot open shared object file: No such file or directory --> FOAM Warning : From function dlLibraryTable::open(const fileName&, const bool) in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99 could not load "libsimpleSwakFunctionObjects.so" --> FOAM Warning : From function dlOpen(const fileName&, const bool) in file POSIX.C at line 1179 dlopen error : libswakFunctionObjects.so: cannot open shared object file: No such file or directory --> FOAM Warning : From function dlLibraryTable::open(const fileName&, const bool) in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99 could not load "libswakFunctionObjects.so" --> FOAM Warning : From function dlOpen(const fileName&, const bool) in file POSIX.C at line 1179 dlopen error : libgroovyBC.so: cannot open shared object file: No such file or directory --> FOAM Warning : From function dlLibraryTable::open(const fileName&, const bool) in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99 could not load "libgroovyBC.so" Create mesh for time = 0 Reading field p Reading field U --> FOAM FATAL IO ERROR: Unknown patchField type groovyBC for patch type patch Valid patchField types are : 68 ( SRFFreestreamVelocity SRFVelocity activeBaffleVelocity activePressureForceBaffleVelocity advective atmBoundaryLayerInletVelocity calculated codedFixedValue codedMixed cyclic cyclicAMI cyclicSlip cylindricalInletVelocity directionMixed empty externalCoupled fixedGradient fixedInternalValue fixedJump fixedJumpAMI fixedMean fixedNormalSlip fixedValue flowRateInletVelocity fluxCorrectedVelocity freestream inletOutlet kqRWallFunction mapped mappedField mappedFixedInternalValue mappedFixedPushedInternalValue mappedFlowRate mappedVelocityFlux mixed movingWallVelocity nonuniformTransformCyclic oscillatingFixedValue outletInlet outletMappedUniformInlet partialSlip pressureDirectedInletOutletVelocity pressureDirectedInletVelocity pressureInletOutletParSlipVelocity pressureInletOutletVelocity pressureInletUniformVelocity pressureInletVelocity pressureNormalInletOutletVelocity processor processorCyclic rotatingPressureInletOutletVelocity rotatingWallVelocity sliced slip supersonicFreestream surfaceNormalFixedValue swirlFlowRateInletVelocity symmetryPlane timeVaryingMappedFixedValue translatingWallVelocity turbulentInlet uniformFixedValue uniformJump uniformJumpAMI variableHeightFlowRateInletVelocity waveTransmissive wedge zeroGradient ) file: /share/mvaish/OpenFOAM/mvaish-2.2.2/run/zhaotransientvelfurther/0/U.boundaryField.INLET from line 27 to line 31. From function fvPatchField<Type>::New(const fvPatch&, const DimensionedField<Type, volMesh>&, const dictionary&) in file /usr/local/apps/OpenFOAM/gcc454-2.2.2/OpenFOAM-2.2.2/src/finiteVolume/lnInclude/fvPatchFieldNew.C at line 136. FOAM exiting What should I do? |
Also, does it matters, if I am using bash shell or tcshrc(c shell) for installing swak4Foam? Shell available on cluster is tcshrc while that on my laptop is bash shell.
Regards, Mayank. |
Quote:
|
Hi Bernhard,
Yes, /share/mvaish/OpenFOAM/mvaish-2.2.2/platforms/linux64GccDPOpt/lib/ is my FOAM_USER_LIBBIN. You mean to say if I set: Code:
setenv LD_LIBRARY_PATH = $FOAM_USER_LIBBIN Regards, Mayank |
Quote:
setenv LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$FOAM_USER_LIBBIN but resetting the path the way you suggested will break everything |
All times are GMT -4. The time now is 15:22. |