CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions > OpenFOAM CC Toolkits for Fluid-Structure Interaction

[solids4Foam] How to add temperature to icoFluid

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 16, 2021, 11:55
Default How to add temperature to icoFluid
  #1
New Member
 
roozbeh
Join Date: Oct 2011
Posts: 8
Rep Power: 15
roozbeh_s is on a distinguished road
Dear Philip,
I want to do a similar procedure as in https://openfoamwiki.net/index.php/H...ure_to_icoFoam
in icoFluid of solids4foam. I did the following:
Code:
            IOobject::MUST_READ,
            IOobject::NO_WRITE
        )
    ),
    nu_(transportProperties_.lookup("nu")),
    rho_(transportProperties_.lookup("rho")),

//***********Temp parameters
    DT_(transportProperties_.lookup("DT"))
Then I want to define volScalarField T but I don't know where should I define it, I mean this part:
Code:
volScalarField T
(
    IOobject
    (
         "T",
         runTime.timeName(),
         mesh,
         IOobject::MUST_READ,
         IOobject::AUTO_WRITE
     ),
     mesh
);
Could you help me pleas?
roozbeh_s is offline   Reply With Quote

Old   October 21, 2021, 12:53
Default
  #2
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,093
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Quote:
Originally Posted by roozbeh_s View Post
Dear Philip,
I want to do a similar procedure as in https://openfoamwiki.net/index.php/H...ure_to_icoFoam
in icoFluid of solids4foam. I did the following:
Code:
            IOobject::MUST_READ,
            IOobject::NO_WRITE
        )
    ),
    nu_(transportProperties_.lookup("nu")),
    rho_(transportProperties_.lookup("rho")),

//***********Temp parameters
    DT_(transportProperties_.lookup("DT"))
Then I want to define volScalarField T but I don't know where should I define it, I mean this part:
Code:
volScalarField T
(
    IOobject
    (
         "T",
         runTime.timeName(),
         mesh,
         IOobject::MUST_READ,
         IOobject::AUTO_WRITE
     ),
     mesh
);
Could you help me pleas?
The "volScalarField T" should be added as a private member to the icoFluid class (to the H file) and then added to the constructor in the C file.

Philip
bigphil is offline   Reply With Quote

Reply


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
[openSmoke] libOpenSMOKE Tobi OpenFOAM Community Contributions 562 January 25, 2023 10:21
Static Temperature / Opening Temperature JulianP CFX 12 April 10, 2019 19:00
Problem with zeroGradient wall BC for temperature - Total temperature loss cboss OpenFOAM 12 October 1, 2018 07:36
How to add temperature on DPM particles? Maple_cfd OpenFOAM Running, Solving & CFD 0 April 10, 2018 04:43
[PyFoam] and paraview eelcovv OpenFOAM Community Contributions 28 May 30, 2016 10:23


All times are GMT -4. The time now is 17:35.