CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM

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

Register Blogs Members List Search Today's Posts Mark Forums Read

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
New Member
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.
    type            coded;
    selectionMode   all;

    field          h;

        #include "fvCFD.H"


        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


coded source, fvmodels, heat flux, heatsource

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 23:33.