|
[Sponsors] |
December 8, 2022, 08:03 |
convection and heat source in laplacianFOAM
|
#1 |
New Member
Rovera Alessandro
Join Date: Nov 2010
Location: Dronero (CN) Piemonte Italy
Posts: 12
Rep Power: 16 |
I would like to perform a very simple thermal analysis using laplacianFOAM, but I don't understand well the results, mostly if in comparison with other codes like CalculiX and Elmer (have a look to the attached pictures).
For the 0/T file boundaries conditions I used: internalField uniform 20; boundaryField { heatSource { type fixedGradient; gradient uniform 520.0208; value 20; } "auto1|auto2|auto3|auto4" (paths for natural convectio...) { type codedMixed; refValue uniform 0; refGradient uniform 0; valueFraction uniform 1; name freeConvection; code #{ float tAmb = 20; float h = 5.246; this->refGrad() = -h*(this->db().time().value() - tAmb); this->refValue() = 20; #}; codeOptions #{ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude #}; codeInclude #{ #include "fvCFD.H" #include <cmath> #include <iostream> #}; } } Could anyone help me to understand how I could set-up the correct boundaries? Alex |
|
February 2, 2023, 09:10 |
|
#2 |
New Member
Sophia Komo
Join Date: Feb 2023
Posts: 1
Rep Power: 0 |
Hi Alex,
Have you solved your problem? I am working on something similar and I am very much a beginner but I do see something that doesn't convince me. In the free convection code you write this->db().time().value().. but that gives you a value of time not the value of the temperature that you need. Let me know if you get somewhere! Sophia |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Heat Source applied on "step" | cramr5 | STAR-CCM+ | 7 | July 29, 2022 09:03 |
[laserConvBC] Boundary condition with convection, heat source and radiation | Tobi | OpenFOAM Community Contributions | 24 | February 22, 2021 11:22 |
Static evaporating meniscus with mass source term and convection heat transfer | Kimia | Fluent UDF and Scheme Programming | 0 | May 8, 2017 18:07 |
Natural convection in enclosure with heat generating source | nuclear_swapnil | Main CFD Forum | 7 | February 2, 2017 06:44 |
Error finding variable "THERMX" | sunilpatil | CFX | 8 | April 26, 2013 08:00 |