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

modifying Carreau model (viscosity) - How to use "wmake"?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 27, 2014, 21:26
Default modifying Carreau model (viscosity) - How to use "wmake"?
  #1
Member
 
vitor spadeto
Join Date: Nov 2014
Posts: 51
Rep Power: 12
vitorspadetoventurin is on a distinguished road
I must modify Carreau model ... I made the modifications in BirdCarreau.C and saved changes(in the BirdCarreau.C). And now, What should I do? type "wmake" in the terminal (inside the directory of BirdCarreau.C)?

Last edited by vitorspadetoventurin; November 27, 2014 at 22:32.
vitorspadetoventurin is offline   Reply With Quote

Old   November 27, 2014, 21:30
Default
  #2
Member
 
vitor spadeto
Join Date: Nov 2014
Posts: 51
Rep Power: 12
vitorspadetoventurin is on a distinguished road
typing wmake gives...:

Code:
a@a-Aspire-V3-571:/opt/openfoam230/src/transportModels/incompressible/viscosityModels/BirdCarreau$ wmake
wmake: 'Make' directory does not exist in /opt/openfoam230/src/transportModels/incompressible/viscosityModels/BirdCarreau
    Searching up directories tree for Make directory
    Found target directory  ./../..
Making dependency list for source file viscosityModels/viscosityModel/viscosityModel.C
Making dependency list for source file viscosityModels/viscosityModel/viscosityModelNew.C
Making dependency list for source file viscosityModels/Newtonian/Newtonian.C
Making dependency list for source file viscosityModels/powerLaw/powerLaw.C
Making dependency list for source file viscosityModels/CrossPowerLaw/CrossPowerLaw.C
Making dependency list for source file viscosityModels/BirdCarreau/BirdCarreau.C
Making dependency list for source file viscosityModels/HerschelBulkley/HerschelBulkley.C
Making dependency list for source file transportModel/transportModel.C
Making dependency list for source file singlePhaseTransportModel/singlePhaseTransportModel.C
Making dependency list for source file incompressibleTwoPhaseMixture/incompressibleTwoPhaseMixture.C
SOURCE=viscosityModels/viscosityModel/viscosityModel.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I.. -I../twoPhaseMixture/lnInclude -I/opt/openfoam230/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam230/src/OpenFOAM/lnInclude -I/opt/openfoam230/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/viscosityModel.o
SOURCE=viscosityModels/viscosityModel/viscosityModelNew.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I.. -I../twoPhaseMixture/lnInclude -I/opt/openfoam230/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam230/src/OpenFOAM/lnInclude -I/opt/openfoam230/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/viscosityModelNew.o
SOURCE=viscosityModels/Newtonian/Newtonian.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I.. -I../twoPhaseMixture/lnInclude -I/opt/openfoam230/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam230/src/OpenFOAM/lnInclude -I/opt/openfoam230/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/Newtonian.o
SOURCE=viscosityModels/powerLaw/powerLaw.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I.. -I../twoPhaseMixture/lnInclude -I/opt/openfoam230/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam230/src/OpenFOAM/lnInclude -I/opt/openfoam230/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/powerLaw.o
SOURCE=viscosityModels/CrossPowerLaw/CrossPowerLaw.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I.. -I../twoPhaseMixture/lnInclude -I/opt/openfoam230/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam230/src/OpenFOAM/lnInclude -I/opt/openfoam230/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/CrossPowerLaw.o
SOURCE=viscosityModels/BirdCarreau/BirdCarreau.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I.. -I../twoPhaseMixture/lnInclude -I/opt/openfoam230/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam230/src/OpenFOAM/lnInclude -I/opt/openfoam230/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/BirdCarreau.o
SOURCE=viscosityModels/HerschelBulkley/HerschelBulkley.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I.. -I../twoPhaseMixture/lnInclude -I/opt/openfoam230/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam230/src/OpenFOAM/lnInclude -I/opt/openfoam230/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/HerschelBulkley.o
SOURCE=transportModel/transportModel.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I.. -I../twoPhaseMixture/lnInclude -I/opt/openfoam230/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam230/src/OpenFOAM/lnInclude -I/opt/openfoam230/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/transportModel.o
SOURCE=singlePhaseTransportModel/singlePhaseTransportModel.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I.. -I../twoPhaseMixture/lnInclude -I/opt/openfoam230/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam230/src/OpenFOAM/lnInclude -I/opt/openfoam230/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/singlePhaseTransportModel.o
SOURCE=incompressibleTwoPhaseMixture/incompressibleTwoPhaseMixture.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I.. -I../twoPhaseMixture/lnInclude -I/opt/openfoam230/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam230/src/OpenFOAM/lnInclude -I/opt/openfoam230/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/incompressibleTwoPhaseMixture.o
'/opt/openfoam230/platforms/linux64GccDPOpt/lib/libincompressibleTransportModels.so' is up to date.
a@a-Aspire-V3-571:/opt/openfoam230/src/transportModels/incompressible/viscosityModels/BirdCarreau$
I made other modification (that I forgot to change before) and typed again the command wmake and gives:

a@a-Aspire-V3-571:/opt/openfoam230/src/transportModels/incompressible/viscosityModels/BirdCarreau$ wmake
wmake: 'Make' directory does not exist in /opt/openfoam230/src/transportModels/incompressible/viscosityModels/BirdCarreau
Searching up directories tree for Make directory
Found target directory ./../..
Making dependency list for source file viscosityModels/BirdCarreau/BirdCarreau.C
SOURCE=viscosityModels/BirdCarreau/BirdCarreau.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I.. -I../twoPhaseMixture/lnInclude -I/opt/openfoam230/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam230/src/OpenFOAM/lnInclude -I/opt/openfoam230/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/BirdCarreau.o
'/opt/openfoam230/platforms/linux64GccDPOpt/lib/libincompressibleTransportModels.so' is up to date.


Is it OK? Or not? Now, Can I just run my case with my changed Carreau viscosity model ?


I just modified the value of a constant in BirdCarreau.C

Last edited by vitorspadetoventurin; November 27, 2014 at 23:05.
vitorspadetoventurin is offline   Reply With Quote

Old   November 28, 2014, 02:25
Default
  #3
Senior Member
 
T. Chourushi
Join Date: Jul 2009
Posts: 321
Blog Entries: 1
Rep Power: 18
Tushar@cfd is on a distinguished road
Dear Victor,

You can edit and make your own libraries in OpenFOAM. I think you are missing this step, please have a look to the following weblink:

http://www.openfoam.org/docs/user/co...plications.php

In order to run your case try "wmake libso" instead of "wmake", it will solve the linking problem. Also, check your working directory.

-
Best Luck!

Last edited by Tushar@cfd; November 28, 2014 at 07:05.
Tushar@cfd 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
Viscosity model - Compressible flow Aurelien Thinat OpenFOAM Programming & Development 3 March 6, 2018 08:08
Validity of Sutherland's viscosity model for high-T gases tatu Main CFD Forum 1 March 6, 2013 13:00
Power - Law Viscosity Model for Polymers NickolasPl OpenFOAM 2 August 12, 2011 09:26
eddy viscosity for k-epsilon model vishwas FLUENT 2 January 27, 2006 04:25
Casson Viscosity model as one user define function Zahra Rahmdel FLUENT 0 November 6, 2004 06:53


All times are GMT -4. The time now is 14:15.