CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Swirl at inlet boundary (https://www.cfd-online.com/Forums/openfoam-solving/71541-swirl-inlet-boundary.html)

benham November 6, 2017 09:38

Hi there,

I am having trouble compiling the addSwirlAndRotation feature.

Following:

http://openfoamwiki.net/index.php/Si...irlAndRotation

I have run these lines:

svn checkout svn://svn.code.sf.net/p/openfoam-extend/svn/trunk/Breeder_1.5/OSIG/TurboMachinery/applications applications_SIGturbo
svn checkout svn://svn.code.sf.net/p/openfoam-extend/svn/trunk/Breeder_1.5/OSIG/TurboMachinery/src src_SIGturbo

Now I want to run the folowing lines:

cd $WM_PROJECT_USER_DIR/applications_SIGturbo/utilities/preProcessing/addSwirlAndRotation/
wclean
wmake
rehash #if necessary

This is the output of my code:

Making dependency list for source file addSwirlAndRotation.C
g++ -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -I/home/benham/openfoam/openfoam30/src/finiteVolume/lnInclude -I/home/benham/openfoam/openfoam30/src/turbulenceModels/RAS -I/home/benham/openfoam/openfoam30/src/transportModels -I/home/benham/openfoam/openfoam30/src/meshTools/lnInclude -IlnInclude -I. -I/home/benham/openfoam/openfoam30/src/OpenFOAM/lnInclude -I/home/benham/openfoam/openfoam30/src/OSspecific/POSIX/lnInclude -fPIC -c addSwirlAndRotation.C -o /home/benham/openfoam/openfoam30/platforms/linux64GccDPInt32Opt/applications_SIGturbo/utilities/preProcessing/addSwirlAndRotation/addSwirlAndRotation.o
g++ -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -I/home/benham/openfoam/openfoam30/src/finiteVolume/lnInclude -I/home/benham/openfoam/openfoam30/src/turbulenceModels/RAS -I/home/benham/openfoam/openfoam30/src/transportModels -I/home/benham/openfoam/openfoam30/src/meshTools/lnInclude -IlnInclude -I. -I/home/benham/openfoam/openfoam30/src/OpenFOAM/lnInclude -I/home/benham/openfoam/openfoam30/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed /home/benham/openfoam/openfoam30/platforms/linux64GccDPInt32Opt/applications_SIGturbo/utilities/preProcessing/addSwirlAndRotation/addSwirlAndRotation.o -L/home/benham/openfoam/openfoam30/platforms/linux64GccDPInt32Opt/lib \
-lincompressibleRASModels -lincompressibleTransportModels -lfiniteVolume -lmeshTools -lOpenFOAM -ldl \
-lm -o /home/benham/OpenFOAM/benham-3.0.1/platforms/linux64GccDPInt32Opt/bin/addSwirlAndRotation
/usr/bin/ld: cannot find -lincompressibleRASModels
collect2: error: ld returned 1 exit status
/home/benham/openfoam/openfoam30/wmake/Makefile:138: recipe for target '/home/benham/OpenFOAM/benham-3.0.1/platforms/linux64GccDPInt32Opt/bin/addSwirlAndRotation' failed
make: *** [/home/benham/OpenFOAM/benham-3.0.1/platforms/linux64GccDPInt32Opt/bin/addSwirlAndRotation] Error 1


Could anyone help me out?

Many thanks,
Graham

benham November 7, 2017 10:03

Hi there,

I have managed to compile the addSwirlAndRotation utility but when I execute it inside the case studies here:

https://www.openfoamwiki.net/index.p...nical_diffuser

I get the following error:

*** Error in `addSwirlAndRotation': free(): invalid pointer: 0x00007ffc34a514d8 ***

Can anyone help me please?

Best wishes,
Graham

cschmitz November 13, 2017 13:18

I dont see how the addSwirlAndRotation utility depends on any incompressibleRASModels.

You can probably remove the line that says "-lincompressibleRASModels" from the Make/options file, as well as the line that says "-lincompressibleTransportModels".

benham December 5, 2017 04:03

Issue was solved by updating to OF5.0.


All times are GMT -4. The time now is 16:54.