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

average value in any plane

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 25, 2006, 04:18
Default average value in any plane
  #1
aloise
Guest
 
Posts: n/a
Hello everyone,

I have a question about cfx5-post.

This question is almost the same like Roy Chen had in 2002: http://www.cfd-online.com/Forum/cfx_....cgi/read/3538

As he I also want to know an average value across a plane. But I want to move this plane and plott all the average values along the movementline.

In my case I need the distribution of the mass averaged temperature.

Does anyone know who to achieve this without having a lot of planes and also as many expressions. There needs to be an easier way than having thousand planes. Probably with power syntax?

Thanks for your help, Aloise
  Reply With Quote

Old   July 25, 2006, 07:52
Default Re: average value in any plane
  #2
Mike
Guest
 
Posts: n/a
Record a session file that does this for one plane, then go and edit the session file so that you put a "for" loop around the plane generation and temperature calculation. There an example in the CFX-Post doc under Power Syntax that is fairly similar. Miike
  Reply With Quote

Old   July 26, 2006, 15:21
Default average value in any plane => RESULT!
  #3
aloise
Guest
 
Posts: n/a
Thanks Mike!!

It toke me a while to figure out how to get this working. For others facing the same problem here is me result:

VIEWPORT MANAGER: Viewport List = Viewport Order = 1, 2, 3, 4 Maximized Viewport = -1 END

VIEWPORT MANAGER: Viewport List = Viewport Order = 1, 2, 3, 4 Maximized Viewport = -1 END

VIEWPORT MANAGER: Viewport List = Viewport Order = 1, 2, 3, 4 Maximized Viewport = -1 END

! #Variablen hier verändern ! open(Filehandle,">>C:\Temp\kellerlog.log"); ! $length = 320; ! $steps = 320; ! $delimiter = ","; ! $i = 0; ! $einheit = "mm"; ! while($i<=$steps){

PLANE:Plane 1

Apply Instancing Transform = On

Apply Texture = Off

Blend Texture = On

Bound Radius = 0.5 [m]

Colour = 0.75, 0.75, 0.75

Colour Map = Rainbow

Colour Mode = Constant

Colour Scale = Linear

Colour Variable = Pressure

Colour Variable Boundary Values = Hybrid

Culling Mode = No Culling

Direction 1 Bound = 1 [m]

Direction 1 Orientation = 0 [degree]

Direction 1 Points = 10

Direction 2 Bound = 1 [m]

Direction 2 Points = 10

Domain List = All Domains

Draw Faces = On

Draw Lines = Off

Instancing Transform = Default Transform

Invert Plane Bound = Off

Lighting = On

Line Colour = 0, 0, 0

Line Colour Mode = Default

Line Width = 1

Max = 0.0 [Pa]

Min = 0.0 [Pa]

Normal = 1 , 0 , 0

Option = YZ Plane

Plane Bound = None

Plane Type = Slice

Point = 0 [m], 0 [m], 0 [m]

Point 1 = 0 [m], 0 [m], 0 [m]

Point 2 = 1 [m], 0 [m], 0 [m]

Point 3 = 0 [m], 1 [m], 0 [m]

Range = Global

Render Edge Angle = 0 [degree]

Specular Lighting = On

Surface Drawing = Smooth Shading

Texture Angle = 0

Texture Direction = 0 , 1 , 0

Texture File =

Texture Material = Metal

Texture Position = 0 , 0

Texture Scale = 1

Texture Type = Predefined

Tile Texture = Off

Transform Texture = Off

Transparency = 0.0

Visibility = On

X = $i [$einheit]

Y = 0.0 [m]

Z = 0.0 [m]

OBJECT VIEW TRANSFORM:

Apply Reflection = Off

Apply Rotation = Off

Apply Scale = Off

Apply Translation = Off

Principal Axis = Z

Reflection Plane Option = XY Plane

Rotation Angle = 0.0 [degree]

Rotation Axis From = 0 [m], 0 [m], 0 [m]

Rotation Axis To = 0 [m], 0 [m], 0 [m]

Rotation Axis Type = Principal Axis

Scale Vector = 1 , 1 , 1

Translation Vector = 0 [m], 0 [m], 0 [m]

X = 0.0 [m]

Y = 0.0 [m]

Z = 0.0 [m]

END

END

VIEWPORT MANAGER:

Viewport List =

Viewport Order = 1, 2, 3, 4

Maximized Viewport = -1

END

LIBRARY:

CEL:

EXPRESSIONS:

Tbulk=massFlowAve(Temperature )@Plane 1

END

END

END

EXPRESSION EVALUATOR:

Evaluated Expression = Tbulk

END

> forceupdate EXPRESSION EVALUATOR

! ($evalex,$evalex2) = evaluate("massFlowAve(Temperature)\@Plane 1");

! $line = $i.$einheit.$delimiter.$evalex.$evalex2."\n"; ! print Filehandle $line; ! #print $line; ! $i++; ! } ! close(Filehandle);

  Reply With Quote

Old   July 26, 2006, 15:30
Default Chart this?
  #4
aloise
Guest
 
Posts: n/a
Hello,

now that i know how to get these average values across a plane i would like to get them plotted in a chart. The file I get can`t be reread from cfx as file-import to create a chart-line.

Can anybody tell me what I need to consider?

Or is there even an easier way to get these average values plotted in a chart?

Thanks for your help, aloise
  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
Problem with Gmsh nishant_hull Open Source Meshers: Gmsh, Netgen, CGNS, ... 19 Yesterday 05:10
boundaries with gmshToFoam‏ ouafa Open Source Meshers: Gmsh, Netgen, CGNS, ... 7 May 21, 2010 12:43
Average of Y velocity components along a plane Natesal CD-adapco 0 September 28, 2007 12:58
calculation average pressure in a plane with UDF Vitalij FLUENT 1 April 10, 2007 03:39
average value in any plane Roy Chen CFX 7 November 14, 2002 12:17


All times are GMT -4. The time now is 08:39.