|
[Sponsors] |
November 17, 2015, 13:54 |
Using a variable to scale a function
|
#1 |
New Member
Wolfgang Black
Join Date: Nov 2015
Posts: 11
Rep Power: 11 |
Hello,
I'm trying to post-process some data in Ensight and I would like to get the circulation along an interface. I can define the interface by a variable I have, we'll call it species. I'd like to write something like, if(species.LT.0.99) then if(species.GT.0.01) then vort(u) IntegralSurface(vort,[]) else end else end But I can't get if/then statements to run. I see the calc. has If_LT but this isn't working the way I thought it should. I'm unsure how to create this in ensight, any advice would be appreciated |
|
November 17, 2015, 20:43 |
|
#2 |
Senior Member
Kevin Colburn
Join Date: Mar 2009
Location: The Woodlands, TX
Posts: 131
Rep Power: 17 |
But I can't get if/then statements to run. I see the calc. has If_LT but this isn't working the way I thought it should. I'm unsure how to create this in ensight, any advice would be appreciated
I'd approach this problem in the following manner: 1. Select the parent model part (typically the fluid domain). 2. Using the Element Filter capability (2/3 of the way along the top row of EnSight's icons with the Part selected). 3. Specify a filter rule of Species > 0.99 (remember that the Filtering is "filtering out"). 4. Specify a second filter rule, with Species < 0.01; Use the "and" option I believe. The result, should be that your Parent part (the fluid domain) is now only where species < 0.99 and > 0.01 5. Now, Clip this domain (if needed) to obtain your clip of interest (interface). 6. Compute vort(u) and IntegralSurface(vort,[]) on this clip. The key here is to first filter the model parent parts based on the species variable. Then, take a clip of that parent... and operate from there. Please feel free to contact CEI Support directly for any assistance, questions, or additional information. -Kevin
__________________
Kevin Colburn Computational Engineering International, Inc. www.ceisoftware.com kevin@ensight.com |
|
Tags |
calc, ensight, functions, user-defined |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] installation problem with version 0.2.3 | Claudio87 | OpenFOAM Community Contributions | 9 | May 8, 2013 11:20 |
[blockMesh] non-orthogonal faces and incorrect orientation? | nennbs | OpenFOAM Meshing & Mesh Conversion | 7 | April 17, 2013 06:42 |
Variable Density Function | ryzd | FLUENT | 1 | August 25, 2011 15:16 |
OpenFoam 14 installation problem | gfcoppola | OpenFOAM Installation | 20 | November 2, 2007 14:38 |
Env variable not set | gruber2 | OpenFOAM Installation | 5 | December 30, 2005 05:27 |