|
[Sponsors] |
release a passive scalar from within the computational domain & toposet |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 1, 2014, 12:32 |
release a passive scalar from within the computational domain & toposet
|
#1 |
New Member
Join Date: May 2010
Posts: 18
Rep Power: 16 |
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 |
|
April 7, 2014, 15:23 |
|
#2 |
Senior Member
Tian
Join Date: Mar 2009
Location: Berlin, germany
Posts: 122
Rep Power: 17 |
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; } } ); 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; } } } Thomas
__________________
BIM HVACTool, The Green Building Simulation Tool for OpenFOAM, Energy Plus and Radiance. |
|
Tags |
passive scalar, toposet |
|
|
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 20:30 |
UDFs for Scalar Eqn - Fluid/Solid HT | Greg Perkins | FLUENT | 0 | October 11, 2000 04:43 |