|
[Sponsors] |
June 28, 2018, 16:33 |
How to add source terms using fvOptions
|
#1 |
New Member
noobFoam
Join Date: Jun 2018
Posts: 1
Rep Power: 0 |
Hi,
I want to add a cubic heat source in a room. I think I should use fvOptions but i am a total beginner and am unable to find any mention of it in the userguide. Could someone help me get started and maybe link some tutorials having such a heat source. |
|
June 29, 2018, 09:29 |
|
#2 |
Senior Member
Join Date: Sep 2013
Posts: 353
Rep Power: 21 |
You need to define a cellZone,(e.g using topoSet) and add something along these lines. Instead of all you need of course add your cellZone.
Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: dev | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "constant/heater"; object fvOptions; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // options { energySource { type scalarSemiImplicitSource; timeStart 0; duration 1e6; selectionMode all; volumeMode specific; injectionRateSuSp { h (1e7 0); // W/m^3 == kg/m/s^3 } } } // ************************************************************************* // |
|
Tags |
fvoptions, heat transfer, source terms |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
what is swap4foam ?? | AB08 | OpenFOAM | 28 | February 2, 2016 02:22 |
OpenFOAM without MPI | kokizzu | OpenFOAM Installation | 4 | May 26, 2014 10:17 |
centOS 5.6 : paraFoam not working | yossi | OpenFOAM Installation | 2 | October 9, 2013 02:41 |
add source terms in CFX | radouane_bne | CFX | 3 | April 12, 2013 09:45 |
"parabolicVelocity" in OpenFoam 2.1.0 ? | sawyer86 | OpenFOAM Running, Solving & CFD | 21 | February 7, 2012 12:44 |