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

How to compile LinearViscousStress

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 10, 2017, 00:24
Default How to compile LinearViscousStress
  #1
New Member
 
Felipe Murad
Join Date: Mar 2017
Posts: 11
Rep Power: 9
FMurad is on a distinguished road
Dear foamers,

My problem seems to be a really simple one. I just want to edit the boussinesq equation located on file "LinearViscousStress.C" in the turbulenceModel lib (src\TurbulenceModels\turbulenceModels\linearVisco usStress\) and then, recompile the turbuenceModel lib.
To do that, I thought of adding the "LinearViscousStress.C" to the "files" file in the "Make" directory and use wmake to recompile the lib. When I've done that a lot of compilation errors poped up on the console. These error are, for example:

"error: "word" does not name a type"
"error: "volVectorField" does not name a type"
"error: "SurfaceScalarField" does not name a type"
"error: "tmp" does not name a type"
etc...

Does anyone knows of a way to sucessfully compile this file?
Also, why aren't the turbulence models .C files (kepsilon, kOmega,v2f, etc) not inserted into the "file" file in the "make" directory? Shouldn't openfoam recompile them along whith the "turbulenceModel" lib? How can I edit and recompile them?

Best Regards
Felipe
FMurad is offline   Reply With Quote

Old   October 16, 2017, 14:06
Default Recompile turbulenceModels
  #2
New Member
 
Ehimen
Join Date: Jun 2016
Posts: 12
Rep Power: 10
Elliptic CFD is on a distinguished road
turbulenceModel.C found in the src/TurbulenceModels/turbulenceModels directory is the abstract base class for all turbulence models (and corresponding subclasses). Hence, recompiling in that directory should compile the linearViscousStress class.
Elliptic CFD is offline   Reply With Quote

Reply

Tags
boussinesq, compilation error, linearviscousstress, turbulence models


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
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 40 March 18, 2018 07:05
How to compile OpenFOAM-1.7.x on CrunchBang linux 10 gwierink OpenFOAM Installation 0 April 5, 2011 05:38
PV3FoamReader compile error.... PEM_GUY OpenFOAM Installation 6 April 5, 2010 18:22
Error compile file udf czfluent Fluent UDF and Scheme Programming 24 September 26, 2009 14:24
Can someone PLEASE document the development version installation bernd OpenFOAM Installation 76 November 14, 2008 22:51


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