CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

release a passive scalar from within the computational domain & toposet

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   April 1, 2014, 11:32
Default release a passive scalar from within the computational domain & toposet
  #1
New Member
 
Join Date: May 2010
Posts: 2
Rep Power: 0
Barry is on a distinguished road
Dear openFoamers,

I would like to release a (passive) scalar of constant flux from a certain region inside the computational domain at every time step. The mesh was generated using gambit. As a beginner in openfoam, I think the way forward is to create a toposet of the region that I am interested in. If this is the correct approach, could any of you kindly let me know the steps to generate a topoSet and associate the scalar source term to this set.

Many thanks in advance,
Barry
Barry is offline   Reply With Quote

Old   April 7, 2014, 14:23
Default
  #2
Senior Member
 
Tian
Join Date: Mar 2009
Location: Berlin, germany
Posts: 103
Rep Power: 8
tian is on a distinguished road
Hi Barry,

do you still need a solutions? Here is an example created by BIM HVACTool.

My Steps:

1) You create all you STLs for your certain region inside like me: two small boxes.
2) Save all your STLs in your case folder.
3) Set up your topoSetDict and run it:

Code:
/*---------------------------------------------------------------------------*\
|=========                 |                                                  |
|\\      /   F ield        | OpenFOAM: The Open Source CFD Toolbox            |
| \\    /    O peration    | Version:  2.2.2                                  |
|  \\  /     A nd          | Web:      www.OpenFOAM.org                       |
|   \\/      M anipulation |                                                  |
\*---------------------------------------------------------------------------*/
// Exported by BIM HVACTool Version 0.9.6.3//

FoamFile
{
    version         2.2;
    format          ascii;
    class           dictionary;
    location        "system";
    object          topoSetDict;
}

actions
(
    
    {
        name            PorousMediaDict_box_1;
        type            cellSet;
        action          new;
        source          surfaceToCell;
        sourceInfo
        {
            file            "PorousMediaDict_box_1.stl";
            useSurfaceOrientation false;
            outsidePoints   ((9 17 5));
            includeCut      true;
            includeInside   true;
            includeOutside  false;
            nearDistance    -1;
            curvature       0;
        }

    }

    
    {
        name            PorousMediaDict_box;
        type            cellSet;
        action          new;
        source          surfaceToCell;
        sourceInfo
        {
            file            "PorousMediaDict_box.stl";
            useSurfaceOrientation false;
            outsidePoints   ((9 17 5));
            includeCut      true;
            includeInside   true;
            includeOutside  false;
            nearDistance    -1;
            curvature       0;
        }

    }

);
4) I used the fvOptions for set an explicit value in my domain:

Code:
/*---------------------------------------------------------------------------*\
|=========                 |                                                  |
|\\      /   F ield        | OpenFOAM: The Open Source CFD Toolbox            |
| \\    /    O peration    | Version:  2.2.2                                  |
|  \\  /     A nd          | Web:      www.OpenFOAM.org                       |
|   \\/      M anipulation |                                                  |
\*---------------------------------------------------------------------------*/
// Exported by BIM HVACTool Version 0.9.6.3//

FoamFile
{
    version         2.2;
    format          ascii;
    class           dictionary;
    location        "system";
    object          fvOptions;
}

PorousMediaDict_box_1
{
    type            scalarExplicitSetValue;
    active          true;
    selectionMode   cellSet;
    cellSet         PorousMediaDict_box_1;
    scalarExplicitSetValueCoeffs
    {
        volumeMode      absolute;
        injectionRate
        {
            T               309;
        }

    }

}

PorousMediaDict_box
{
    type            scalarExplicitSetValue;
    active          true;
    selectionMode   cellSet;
    cellSet         PorousMediaDict_box;
	
    scalarExplicitSetValueCoeffs
    {
        volumeMode      absolute;
        injectionRate
        {
            T               309;
        }

    }
}
Bye
Thomas
__________________
BIM HVACTool, The Green Building Simulation Tool for OpenFOAM, Energy Plus and Radiance.
tian is offline   Reply With Quote

Reply

Tags
passive scalar, toposet

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem, adding passive scalar transport for turbulent, compressible flow cryple OpenFOAM Programming & Development 2 March 25, 2013 12:00
Passive Scalar boundary conditions francesco12 STAR-CCM+ 1 December 13, 2012 04:15
2d irregular grid Remy Main CFD Forum 1 December 22, 2008 05:49
computational domain & boundary condition novice Main CFD Forum 0 May 8, 2006 19:30
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 11, 2000 03:43


All times are GMT -4. The time now is 17:48.