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

Setting BC for a passive scalar (groovy vs fvOptions)

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 23, 2013, 14:53
Default Setting BC for a passive scalar (groovy vs fvOptions)
  #1
Senior Member
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 1,100
Blog Entries: 6
Rep Power: 19
Tobi will become famous soon enough
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi all,

in the attachement you can se a simple geometry and the value of the passiv scalar I added.

For the inlet BC I used groovy in a not very comfortable way
To get the three seperated inlets I had to build a BC like that:

Code:
    inlet
    {
        type            groovyBC;
        value           $internalField;
        valueExpression "pos().y>-0.04 ? ( pos().y < -0.035 ? (pos().x<0.002 ? pos().x > -0.002 ? 1 :0 :0 ) : ( pos().y > -0.002 ? pos().y < 0.002 ? (pos().x<0.002 ? pos().x > -0.002 ? 1 :0 :0 ) : (pos().y > 0.035 ? pos().y < 0.04 ? (pos().x<0.002 ? pos().x > -0.002 ? 1 :0 :0 ) : 0: 0) : 0)) : 0";
        valiables       "";
    }
As you can see its a very strange and confusing BC-declaration.
So the question is, if its possible to do that in a easier way.

Maybe with the new fvOptions in 2.2.x like here: http://www.openfoam.org/version2.2.0...processing.php

Code:
new scalarTransport - enables the solution of a scalar transport equation,       where the scalar can be specified using via boundary conditions, or using       the new fvOptions framework. The following images show the time       evolution of three point sources added to the pitzDaily tutorial       case:
As I see in the pictures it is possible to set a passive scalar with fvOptions with no additonal work on modifying a solver!

Can someone give me an advice or hint, link or something like that?

Thanks all

Tobi
Attached Images
File Type: jpg groovy.jpg (10.7 KB, 29 views)
Tobi is offline   Reply With Quote

Reply

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
compressible flow in turbocharger riesotto OpenFOAM 50 May 26, 2014 01:47
whats the cause of error? immortality OpenFOAM Running, Solving & CFD 11 April 22, 2014 12:32
is internalField(U) equivalent to zeroGradient? immortality OpenFOAM Running, Solving & CFD 7 March 29, 2013 02:27
Cells with t below lower limit Purushothama CD-adapco 2 May 31, 2010 21:58
Warning 097- AB CD-adapco 6 November 15, 2004 05:41


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