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

openfaom

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   January 28, 2020, 10:05
Default openfaom
  #1
New Member
 
reza moradi
Join Date: Dec 2019
Location: neka,iran
Posts: 2
Rep Power: 0
reza.mrd is on a distinguished road
hello to all


I want to define a temperature dependence viscosity in simple foam but these errors occur



keyword nu is undefined in dictionary "/home/reza/Desktop/etCase02/constant/transportProperties"

file: /home/reza/Desktop/etCase02/constant/transportProperties from line 17 to line 64.

From function const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, bool, bool) const
in file db/dictionary/dictionary.C at line 441.

here's my .H and .C codes and transport peroperties file


Quote:
Info<< "\nStarting time loop\n" << endl;

while (simple.loop())
{
Info<< "Time = " << runTime.timeName() << nl << endl;

// --- Pressure-velocity SIMPLE corrector
{

nu=nu0*((2.414/100000)*pow(10,(247.8/(T-140))))/rho;

#include "ET.H"
#include "UEqn.H"
#include "pEqn.H"
}

laminarTransport.correct();
turbulence->correct();

runTime.write();

Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
<< " ClockTime = " << runTime.elapsedClockTime() << " s"
<< nl << endl;
}

Info<< "End\n" << endl;

return 0;
}
Quote:
volScalarField nu
(
IOobject
(
"nu",
runTime.timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh,
nu0
);

dimensionedScalar nu0
(
transportProperties.lookup("nu0")
);
transportModel Newtonian;

Quote:
rho rho [1 -3 0 0 0 0 0] 1000;
nu0 nu0 [0 2 -1 0 0 0 0] 1;
Du0 Du0 [0 0 -1 0 0 0 0] 1;
E0 E0 [1 1 -3 0 0 -1 0] (1 1 1);
cp cp [0 2 -2 -1 0 0 0] 4184;
a a [1 -1 -2 -1 0 0 0] 4184000;
k k [1 1 -3 -1 0 0 0] 0.598;

hope for your answers
reza.mrd is offline   Reply With Quote

 


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
I need explanations about fixedFluxPressure Cyp OpenFOAM Running, Solving & CFD 17 May 28, 2022 11:01
problem with using VTK toolkit software as post processor for openFaom a.hajisharifi OpenFOAM Post-Processing 0 January 22, 2016 11:10
extracting planes from 3D simulations in OpenFaom saeedi OpenFOAM Post-Processing 0 August 9, 2015 18:47
buoyantPressure in OpenFAOM 2.3.0 zandi OpenFOAM Running, Solving & CFD 0 October 16, 2014 02:35
OpenFAOM 2.1.0 with Intel Compilers Kim123 OpenFOAM Installation 2 April 3, 2012 08:23


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