CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Swirl at inlet boundary

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 6, 2017, 10:38
Default
  #21
New Member
 
Graham
Join Date: Feb 2016
Posts: 13
Rep Power: 10
benham is on a distinguished road
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 is offline   Reply With Quote

Old   November 7, 2017, 11:03
Default
  #22
New Member
 
Graham
Join Date: Feb 2016
Posts: 13
Rep Power: 10
benham is on a distinguished road
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
benham is offline   Reply With Quote

Old   November 13, 2017, 14:18
Default
  #23
New Member
 
Christian Schmitz
Join Date: Nov 2017
Posts: 1
Rep Power: 0
cschmitz is on a distinguished road
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".
cschmitz is offline   Reply With Quote

Old   December 5, 2017, 05:03
Default
  #24
New Member
 
Graham
Join Date: Feb 2016
Posts: 13
Rep Power: 10
benham is on a distinguished road
Issue was solved by updating to OF5.0.
benham is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pressure Inlet Boundary Condition Prasad FLUENT 6 April 9, 2013 22:32
Inlet and outlet boundary condition David Baker FLUENT 3 June 22, 2005 01:42
Pressure Inlet Boundary Condition Trinity_psu FLUENT 0 June 1, 2005 15:15
user soubroutine of inlet boundary conditions Charlie Beghein Siemens 2 August 30, 2002 03:03
length scales at inlet for internal flows Anne-Marie Giroux Main CFD Forum 3 July 5, 1999 22:28


All times are GMT -4. The time now is 23:06.