CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > EnSight

Using a variable to scale a function

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 17, 2015, 13:54
Default Using a variable to scale a function
  #1
New Member
 
Wolfgang Black
Join Date: Nov 2015
Posts: 11
Rep Power: 10
wjbvg5 is on a distinguished road
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
wjbvg5 is offline   Reply With Quote

Old   November 17, 2015, 20:43
Default
  #2
Senior Member
 
kevincolburn's Avatar
 
Kevin Colburn
Join Date: Mar 2009
Location: The Woodlands, TX
Posts: 131
Rep Power: 17
kevincolburn is on a distinguished road
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
kevincolburn is offline   Reply With Quote

Reply

Tags
calc, ensight, functions, user-defined

Thread Tools Search this Thread
Search this Thread:

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


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


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