|
[Sponsors] |
Error while compiling adjointShapeOptimizationFoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 6, 2016, 03:04 |
Error while compiling adjointShapeOptimizationFoam
|
#1 |
New Member
changhee kim
Join Date: Feb 2014
Posts: 18
Rep Power: 12 |
I wonder why this message occurs.
I use OpenFOAM-3.0.1 version. adjointOutletPressure/adjointOutletPressureFvPatchScalarField.C: In member function ‘virtual void Foam::adjointOutletPressureFvPatchScalarField::upd ateCoeffs()’: adjointOutletPressure/adjointOutletPressureFvPatchScalarField.C:112:11: error: ‘incompressible’ does not name a type const incompressible::RASModel& rasModel = ^ adjointOutletPressure/adjointOutletPressureFvPatchScalarField.C:115:25: error: ‘rasModel’ was not declared in this scope scalarField nueff = rasModel.nuEff()().boundaryField()[patch().index()]; ^ |
|
April 6, 2016, 06:13 |
|
#2 |
Member
Anurag
Join Date: Aug 2014
Location: Germany
Posts: 57
Rep Power: 11 |
Dear Changhee Kim,
You have to give more details in order to get help. Please go through this post first. |
|
April 8, 2016, 07:48 |
Error while compiling adjointShapeOptimizationFoam
|
#3 |
New Member
changhee kim
Join Date: Feb 2014
Posts: 18
Rep Power: 12 |
I'd like to implement modified adjointShapeOptimizationFoam attached below.
(I use OpenFOAM-3.0.1) The errors that I received is as follows. I would appreciate if someone can help me. UNAdjointShapeOptimizationFoam.C:50:22: fatal error: RASModel.H: No such file or directory #include "RASModel.H" In file included from UNAdjointShapeOptimizationFoam.C:75:0: createFields.H: In function ‘int main(int, char**)’: createFields.H:81:13: error: ‘incompressible’ was not declared in this scope autoPtr<incompressible::RASModel> turbulence |
|
April 16, 2016, 15:29 |
|
#4 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quick questions:
Quote:
If you prefer to fix the solver you have, then you will need to follow the changes made to the original solver, as listed here: https://github.com/OpenFOAM/OpenFOAM...timizationFoam
__________________
|
||
July 22, 2016, 09:48 |
|
#5 |
New Member
Join Date: Feb 2016
Posts: 13
Rep Power: 10 |
Hi Changkee Kim,
The work of Ulf Nilsson has been developped for OpenFoam 2.2.x In adjointOutletPressureUniFvPatchScalarField.C and adjointOutletVelocityUniFvPatchVectorField.C replace #include "RASModel" by #include "turbulentTransportModel.H" which could more convenient for version 3.0.1 |
|
November 18, 2016, 11:23 |
|
#6 |
Senior Member
Join Date: Mar 2016
Location: Bergamo
Posts: 157
Rep Power: 10 |
Hello.
Same problem here. Does the solution posted by fanny also work for OpenFOAM 4.1? Best Regards, Roberto |
|
September 30, 2019, 10:48 |
nueff v6
|
#7 |
New Member
Andrea Trotta
Join Date: Aug 2019
Posts: 14
Rep Power: 6 |
Hi,
do you have any idea on how to access nueff for openFoam v6? |
|
October 22, 2019, 10:03 |
Solved: turbulence properties OpenFoam 6
|
#8 |
New Member
Andrea Trotta
Join Date: Aug 2019
Posts: 14
Rep Power: 6 |
To access Turbulent properties, for example computing a Boundary Condition in OpenFoam 6:
const turbulenceModel& turbModel = db().lookupObject<turbulenceModel> ( IOobject::groupName ( turbulenceModel:ropertiesName, internalField().group() ) ); const tmp<volScalarField> nup = turbModel.nu(); const volScalarField& nute = nup(); const tmp<volScalarField> nupt = turbModel.nut(); const volScalarField& nutt = nupt(); |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with Compiling UDFs in Ansys Fluent 13 (lnx64) | Ali.beh | Fluent UDF and Scheme Programming | 3 | August 27, 2018 04:22 |
[OpenFOAM.org] Trouble Compiling OpenFOAM-dev using Intel Compiler 15 for use on Xeon Phi | foamer123 | OpenFOAM Installation | 9 | August 20, 2015 14:03 |
Error Compiling Paraview4.1.0 | npel | OpenFOAM Installation | 7 | April 10, 2014 15:07 |
paraview 3.10.1 compiling error (1.6-ext) | vkrastev | OpenFOAM Installation | 7 | October 28, 2011 03:17 |
Help with KIVA4 source code compiling | geothokar | Main CFD Forum | 0 | September 3, 2010 05:40 |