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

View the value of a term in the domain

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By NotOverUnderated

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 14, 2024, 13:12
Default View the value of a term in the domain
  #1
gu1
Senior Member
 
Guilherme
Join Date: Apr 2017
Posts: 245
Rep Power: 10
gu1 is on a distinguished road
Hi,

If I want to see a value of a term in each element of my domain, how is it possible?

For example, I would like to visualize the values of DnuTildaEff() present in Smagorinsky's model.

SpalartAllmarasDES.C:

Code:
template<class BasicMomentumTransportModel>
tmp<volScalarField> SpalartAllmarasDES<BasicMomentumTransportModel>::
DnuTildaEff() const
{
    return volScalarField::New
    (
        "DnuTildaEff",
        (nuTilda_ + this->nu())/sigmaNut_
    );
}
Anyone can help me?

And... If I want to see the Delta value, how do I do it?

Thanks.
gu1 is offline   Reply With Quote

Old   January 15, 2024, 05:45
Default
  #2
Senior Member
 
NotOverUnderated's Avatar
 
ONESP-RO
Join Date: Feb 2021
Location: Somwhere on Planet Earth
Posts: 127
Rep Power: 5
NotOverUnderated is on a distinguished road
Quote:
Originally Posted by gu1 View Post
Hi,

If I want to see a value of a term in each element of my domain, how is it possible?

For example, I would like to visualize the values of DnuTildaEff() present in Smagorinsky's model.

SpalartAllmarasDES.C:

Code:
template<class BasicMomentumTransportModel>
tmp<volScalarField> SpalartAllmarasDES<BasicMomentumTransportModel>::
DnuTildaEff() const
{
    return volScalarField::New
    (
        "DnuTildaEff",
        (nuTilda_ + this->nu())/sigmaNut_
    );
}
Anyone can help me?

And... If I want to see the Delta value, how do I do it?

Thanks.
Hi,

You can invoke the write method:

Code:
fieldName.write();
gu1 likes this.
__________________
Don't keep making the same mistakes. Try to make new mistakes.
NotOverUnderated is offline   Reply With Quote

Reply

Tags
openfoam9


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
How to add Source term (2) for PYROLYSIS - reactingOneDim Kummi OpenFOAM 10 April 12, 2021 22:11
Can I achieve better convergence? sheaker CFX 12 September 19, 2019 16:36
Source term for EVAPORATION in Energy Equ. - technical difficulty ? Kummi OpenFOAM 1 September 9, 2019 10:32
Domain Imbalance HMR CFX 5 October 10, 2016 06:57
Closed Domain Buoyancy Flow Problem Madhatter92 CFX 6 June 20, 2016 22:05


All times are GMT -4. The time now is 14:38.