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

convection and heat source in laplacianFOAM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 8, 2022, 08:03
Default 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
teofil is on a distinguished road
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
Attached Images
File Type: png results.png (84.8 KB, 15 views)
teofil is offline   Reply With Quote

Old   February 2, 2023, 09:10
Default
  #2
New Member
 
Sophia Komo
Join Date: Feb 2023
Posts: 1
Rep Power: 0
Sophia is on a distinguished road
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
Sophia 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
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


All times are GMT -4. The time now is 21:02.