|
[Sponsors] | |||||
Average value of expression in transient flow analysis |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
New Member
Jacob Fogh Knudsen
Join Date: May 2013
Location: Aarhus, Denmark
Posts: 1
Rep Power: 0 ![]() |
Hi,
I am currently trying to set up a transient flow analysis of an aerofoil. I want to extract the average drag coefficient as a parameter for a study, but have run into some problems. Currently i am so far:
When I run the model I get an instant error saying: | PROBLEM ENCOUNTERED WHEN EXECUTING CFX EXPRESSION LANGUAGE | | | | The CFX expression language was evaluating: | | Additional Variable Value | | | | The problem was: | | DIVIDE-BY-ZERO | Have I missed some small detail or am I doing it completely wrong? Please help. Thanks! |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 23 ![]() |
I've done almost the same thing as you, but used two AVs and the .Trnavg operator instead. It worked for me.
edit: what was the initial condition for your AV? If it was set to zero it could explain your error. Code:
LIBRARY:
ADDITIONAL VARIABLE: Additional Variable 1
Boundary Only Field = On
Option = Definition
Tensor Type = SCALAR
Units = [Pa]
Variable Type = Unspecified
END
ADDITIONAL VARIABLE: Additional Variable 2
Boundary Only Field = On
Option = Definition
Tensor Type = SCALAR
Units = [Pa]
Variable Type = Unspecified
END
and
FLUID MODELS:
ADDITIONAL VARIABLE: Additional Variable 1
Additional Variable Value = areaAve(Pressure)@boundary <--- your expression
Option = Algebraic Equation
END
ADDITIONAL VARIABLE: Additional Variable 2
Additional Variable Value = Additional Variable 1.Trnavg <--- time average
Option = Algebraic Equation
END
|
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Review: Reversed flow | CRT | FLUENT | 1 | May 7, 2018 06:36 |
| Blood flow analysis | kmgraju | FLUENT | 0 | May 20, 2011 03:19 |
| bellmouth flow analysis | munna1981 | Main CFD Forum | 3 | February 14, 2011 13:04 |
| average volume flow rate | carno | FLUENT | 0 | April 12, 2007 07:37 |
| how to do this blade passage flow analysis ? | manish | CFX | 2 | January 16, 2006 04:58 |