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

Is the input of heat source compiled by codedFvmodels heat flux density

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 14, 2023, 08:07
Default Is the input of heat source compiled by codedFvmodels heat flux density
  #1
New Member
 
ZhangWenXuan
Join Date: Mar 2023
Posts: 2
Rep Power: 0
tyhero is on a distinguished road
Hello, everyone, I compiled a heat source with fvmodels. I want to know if I input the heat flux density in this way, that is, the quantity in W. Here is my code.
Code:
energySource
{
    type            coded;
    selectionMode   all;

    field          h;

    codeInclude
    #{
        #include "fvCFD.H"
    #}

    codeAddSup
    #{
    #};

    codeAddRhoSup
    #{
        scalar q0 = 3e6;
        scalar l = 0.04;
        scalar au = 0.04;

        scalarField& heSource = eqn.source();

        const scalarField& V = mesh().V();
        const scalarField& celly = mesh().C().component(1);
        heSource -= q0*(exp((-1)*(celly+au+0.028)/l))*V;
        
    #};
}
tyhero is offline   Reply With Quote

Reply

Tags
coded source, fvmodels, heat flux, heatsource


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
Using PengRobinsonGas EoS with sprayFoam Jabo OpenFOAM Running, Solving & CFD 35 April 29, 2022 15:35
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 03:30
[Other] How to use finite area method in official OpenFOAM 2.2.0? Detian Liu OpenFOAM Meshing & Mesh Conversion 4 November 3, 2015 03:04
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 Seroga OpenFOAM Community Contributions 9 June 12, 2015 17:18
Problem compiling a custom Lagrangian library brbbhatti OpenFOAM Programming & Development 2 July 7, 2014 11:32


All times are GMT -4. The time now is 20:57.