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

Solving a surfaceScalarfield - how to implement boundary?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 9, 2020, 13:23
Default Solving a surfaceScalarfield - how to implement boundary?
  #1
Member
 
stockzahn's Avatar
 
Join Date: Oct 2018
Location: France
Posts: 34
Rep Power: 8
stockzahn is on a distinguished road
Dear FOAMers,


I would like to solve an energy equation knowing all the respective values on the cells faces, like examplarily shown is this small piece of code:



Code:

fvm::(rho, h)
==
fvc::div(kappaS * snGradT * faceArea)


kappaS ... surfaceScalarField containing the thermal conductivity values
snGradT ... surfaceScalarField containing the surface normal temperature gradients
snGradT ... surfaceScalarField containing face Areas



This code works fine for the internal field, e.g. with adiabatic boundaries and an internal heat source. Unfortunately, I'm not able to integrate the boundary conditions in an elegant way; until now I calculate and add an additional source term, whose calculation is different depending on the type of BC. Does anybody know if there is another way to integrate the values of the patch faces into the LES?


Have a nice evening/morning/night/lunch,


stockzahn
stockzahn is offline   Reply With Quote

Old   March 11, 2020, 11:01
Default
  #2
Member
 
stockzahn's Avatar
 
Join Date: Oct 2018
Location: France
Posts: 34
Rep Power: 8
stockzahn is on a distinguished road
Solved. The boundary fields have to be updated seperately. Problem was my lack of knowledge of the mesh structure in OF.
stockzahn 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
problem with Min/max rho tH3f0rC3 OpenFOAM 8 July 31, 2019 10:48
conjugate heat transfer in OpenFOAM skuznet OpenFOAM Running, Solving & CFD 99 March 16, 2017 06:07
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
pisoFoam with k-epsilon turb blows up - Some questions Heroic OpenFOAM Running, Solving & CFD 26 December 17, 2012 04:34
Error while running rhoPisoFoam.. nileshjrane OpenFOAM Running, Solving & CFD 8 August 26, 2010 13:50


All times are GMT -4. The time now is 22:43.