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

Momentum Transport Models

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 4, 2024, 08:06
Default Momentum Transport Models
  #1
New Member
 
Ivan Razenkov
Join Date: Jan 2024
Posts: 1
Rep Power: 0
razenkovv is on a distinguished road
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.
razenkovv is offline   Reply With Quote

Reply

Tags
dimensionedscalar, laminartransport


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
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


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