|
[Sponsors] |
June 12, 2021, 02:46 |
Qtcreator cannot recongnize volScalarField
|
#1 |
Senior Member
|
Dear sir:
I setup a oenfoam project with Qtcreator. I have include the header file for the volScalarField, but Qtcreator still prompt the error about "unknown type name 'volScalarField'.Could you please give me some adives abouth which header file should i inlclude further? Code:
#include <argList.H> #include <fvMesh.H> #include <GeometricField.H> #include <volFields.H> #include <fvCFD.H> #include <mathematicalConstants.H> #include <fvOption.H> #include <volFieldsFwd.H> #include <rhoThermo.H> #include <pimpleControl.H> #include <surfFields.H> #include <cpuInfo.H> #include <linear.H> #include <CodedSource.H> using namespace Foam; int main(int argc, char *argv[]) { #include <setRootCase.H> #include <createTime.H> fvMesh mesh ( IOobject ( fvMesh::defaultRegion, runTime.timeName(), runTime, IOobject::MUST_READ //IOobject::NO_READ ) ); volScalarField TA ( IOobject ( "T", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE ), mesh ); Info<<TA.size(); } // ************************************************************************* // |
|
June 12, 2021, 04:25 |
Debugging-OpenFOAM-with-Visual-Studio-Code
|
#2 |
Member
Rahul Vadrabade
Join Date: Apr 2018
Posts: 46
Rep Power: 8 |
Hi,
Apologies as the answer is not directly related to Qt creator. However, I think it is easier to setup project with vscode, nowadays. Check out as needed . https://github.com/Rvadrabade/Debugg...al-Studio-Code |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error message | Bruno_Jorge | Main CFD Forum | 1 | February 5, 2019 12:12 |
namespace Foam | Argen | OpenFOAM | 4 | February 5, 2019 09:55 |
Adding new member function to GidaspowErgunWenYu.C of dragModel | kiang | OpenFOAM Programming & Development | 0 | June 21, 2017 06:23 |
execFlowFunctionObjects - unknown field problem | Toorop | OpenFOAM Post-Processing | 16 | March 14, 2016 04:25 |
writing execFlowFunctionObjects | immortality | OpenFOAM Post-Processing | 30 | September 15, 2013 07:16 |