|
[Sponsors] |
April 4, 2024, 08:06 |
Momentum Transport Models
|
#1 |
New Member
Ivan Razenkov
Join Date: Jan 2024
Posts: 1
Rep Power: 0 |
Hello everyone. Could you please explain me what this piece of code should do? As I understand, dimensionedScalar is a constant over all simulation region?
singlePhaseTransportModel laminarTransport(U, phi); // Thermal expansion coefficient [1/K] dimensionedScalar beta ( "beta", dimless/dimTemperature, laminarTransport ); // Reference temperature [K] dimensionedScalar TRef("TRef", dimTemperature, laminarTransport); This code is from a solver which was written for the 5th version of the OpenFOAM and I'm trying to rewrite it for the newer version. https://github.com/geo-fluid-dynamics/CoMeTFoam/ I have tried to put this instead of singlePhaseTransportModel, but got an error "rho was not declared in this scope". In OF10 they have included "createRDeltaT.H" before, but it leads to other errors for me. autoPtr<incompressible::momentumTransportModel> laminarTransport ( incompressible::momentumTransportModel::New ( rho, U, phi, thermo ) ); Last edited by razenkovv; April 4, 2024 at 12:25. |
|
Tags |
dimensionedscalar, laminartransport |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Fluid Models - Transport Equation | Ric_ | CFX | 2 | February 2, 2022 18:18 |
Transport models in reactingFoam | kuria | OpenFOAM Running, Solving & CFD | 1 | January 22, 2021 05:50 |
Table bounds warnings at: END OF TIME STEP | CFXer | CFX | 4 | July 17, 2020 00:44 |
Eddy Viscosity Models and Reynolds Stress Models | JuPa | CFX | 1 | August 20, 2013 19:56 |
Viscosity properties for transport models | ozzythewise | OpenFOAM Running, Solving & CFD | 4 | October 7, 2010 21:39 |