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 Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 9, 2017, 23: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, 13:06
Default Recompile turbulenceModels
  #2
New Member
 
Ehimen
Join Date: Jun 2016
Posts: 12
Rep Power: 9
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 06:05
How to compile OpenFOAM-1.7.x on CrunchBang linux 10 gwierink OpenFOAM Installation 0 April 5, 2011 04:38
PV3FoamReader compile error.... PEM_GUY OpenFOAM Installation 6 April 5, 2010 17:22
Error compile file udf czfluent Fluent UDF and Scheme Programming 24 September 26, 2009 13:24
Can someone PLEASE document the development version installation bernd OpenFOAM Installation 76 November 14, 2008 21:51


All times are GMT -4. The time now is 04:51.