|
[Sponsors] |
Is the input of heat source compiled by codedFvmodels heat flux density |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 14, 2023, 09:07 |
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 |
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; #}; } |
|
Tags |
coded source, fvmodels, heat flux, heatsource |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Using PengRobinsonGas EoS with sprayFoam | Jabo | OpenFOAM Running, Solving & CFD | 36 | July 16, 2024 04:52 |
[swak4Foam] funkyDoCalc with OF2.3 massflow | NiFl | OpenFOAM Community Contributions | 14 | November 25, 2020 04:30 |
[Other] How to use finite area method in official OpenFOAM 2.2.0? | Detian Liu | OpenFOAM Meshing & Mesh Conversion | 4 | November 3, 2015 04:04 |
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 | Seroga | OpenFOAM Community Contributions | 9 | June 12, 2015 18:18 |
Problem compiling a custom Lagrangian library | brbbhatti | OpenFOAM Programming & Development | 2 | July 7, 2014 12:32 |