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

How to add source terms using fvOptions

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 28, 2018, 16:33
Default How to add source terms using fvOptions
  #1
New Member
 
noobFoam
Join Date: Jun 2018
Posts: 1
Rep Power: 0
noobFoam is on a distinguished road
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.
noobFoam is offline   Reply With Quote

Old   June 29, 2018, 09:29
Default
  #2
Senior Member
 
Join Date: Sep 2013
Posts: 353
Rep Power: 21
Bloerb will become famous soon enough
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
        }
    }
}

// ************************************************************************* //
Bloerb is offline   Reply With Quote

Reply

Tags
fvoptions, heat transfer, source terms


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
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


All times are GMT -4. The time now is 03:29.