|
[Sponsors] |
June 22, 2017, 04:09 |
|
#21 |
Senior Member
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 12 |
and why is the 1st solution I mentioned not ok?
Just load your 15th timestep or choose from the (clock) tipe of buton on top in post |
|
June 22, 2017, 04:57 |
|
#22 | |
Member
Dr Gurubasavaraju
Join Date: Dec 2014
Location: Bengaluru India
Posts: 78
Rep Power: 12 |
Quote:
I am using this expression in optimisation problem as the output parameter to design of experiments (DOE). This DOE takes the values of the first time step, which not a desirable for my problem. Instead, i want maximum value of force among all time steps (nearly 250 are there in my analysis). To obtain this I have to write an expression which could calculate the force at a particular time (time belong to max value of force) then i can assign this expression as the output parameter to DOE. |
||
June 22, 2017, 08:06 |
|
#23 |
Senior Member
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 12 |
Now this is quite a diferent thing than originaly posted.
i think this will be a tough nut to crack. I am thinking something about; if and acumulated timestep but i doubt that this will work in this case, |
|
June 22, 2017, 09:28 |
|
#24 |
Member
Dr Gurubasavaraju
Join Date: Dec 2014
Location: Bengaluru India
Posts: 78
Rep Power: 12 |
Yea, I am trying all possible ways but it still taking the default time. If could manage to calculate the force though CEL with a current time step, it would solve my problem. Since I know which time have maximum value of Force.
Thank you. |
|
December 23, 2019, 10:45 |
Monitoring maximum of entered fluid mass
|
#25 |
New Member
Ali
Join Date: Dec 2019
Posts: 18
Rep Power: 6 |
Dear forum members,
I want to monitor maximum of entered fluid mass and its position in a specific volume of a tank which is empty, but I don't know how do this by adjusting monitor expressions in output control in CFX? Thank you very much in advance. |
|
December 23, 2019, 13:07 |
|
#26 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,928
Rep Power: 28 |
You have to split up and mesh your tank in different named volume parts. Then in Pre you can add expressions like volInt(Liquid 1.Mass Fraction)@volume 1 where it integrates the total amount of of the volume represented by the massfraction of the substance you are interested in.
The maximum position can be derived from an isosurface of a certain massfraction value (e.g. 0.5). Then you can create an expression like maxVal(Z)@Isosurface 1, where Z is the z-coordinate. But I think this cannot be done during the solving process, but only afterwards in Post using transient files. |
|
January 30, 2020, 18:33 |
|
#27 |
New Member
Ali
Join Date: Dec 2019
Posts: 18
Rep Power: 6 |
Dear Jan,
Thanks for your solution, I tried your solution but it gives me a m^3 parameter, whereas I want a Kg parameter. Therefore, I have tried "massFlowInt(Liquid 1.Volume Fraction)@Fluid Fluid Interface" which gives me mass rate of flowing Fluid 1. But, it just works in "Post", whereas as I want this parameter in "Pre". Can you help me to solve this problem? About second solution you are right it cant be done in Pre. But, my mean was center of mass of the entered mass in specific volume. Thanks for all your help |
|
January 30, 2020, 19:14 |
|
#28 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
Gert's function returns a volume, so if you want the mass of fluid you just multiply it by density. This function should work fine in the solver.
You are correct that the isosurface function only works in CFD-Post.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
January 30, 2020, 19:59 |
|
#29 |
New Member
Ali
Join Date: Dec 2019
Posts: 18
Rep Power: 6 |
Thank you Glenn, you are right. That was my fault.
Do you have any idea how I can locate CoM of moving fluid in the solver? |
|
January 30, 2020, 22:07 |
|
#30 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
This should give you the x location: volumeInt(density*x)@domain/volumeInt(density)@domain
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
January 31, 2020, 14:07 |
|
#31 |
New Member
Ali
Join Date: Dec 2019
Posts: 18
Rep Power: 6 |
Dear Glenn,
Thank you for your comment. It was really helpful. But, there are two problem. First, this function works in CFX-Post, since just single recognized variables are supported by volumeInt in CFX-Pre. Moreover, I want to simulate a turbulent fluid, so I have a two-phase fluid (water and air) and this function considers both phases as a unit fluid (water) in considered domain and give me a constant value all over simulation time for vertical axis (z axis). |
|
January 31, 2020, 14:27 |
|
#32 |
Senior Member
M
Join Date: Dec 2017
Posts: 703
Rep Power: 13 |
I hope I understand your question correctly. In a multiphase simulation you can (or better have to?!) distinguish between the phases by prefixing the phase to the variable you look at. Instead of volumeInt(Velocity) you would write volumeInt(Fluid.Velocity).
|
|
January 31, 2020, 16:30 |
|
#33 |
New Member
Ali
Join Date: Dec 2019
Posts: 18
Rep Power: 6 |
Dear M,
Thank you for your helpful comment. In my problem it works if I could distinguish between Z axes. I mean Z axis for water and Z axis for air. Therefore, I have tried volumeInt(Density*water.Velocity w*t)/volumeInt(Density). But, I think it's wrong. |
|
January 31, 2020, 16:51 |
|
#34 |
Senior Member
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33 |
The workaround of using expressions in the argument of functions in CFX-Pre is to create Algebraic Equation Additional Variable, say
MyAVExpressionX as Unspecified and the dimensions expected for the expression, then activate the variable in the domain of interest (kg/m^3 * m) Additional Variable Value = Density * x Then, in the other expression use CofMx = volumeInt( MyAVExpressionX)@Domain / volumeInt(Density)@Domain Repeat for CofMy, and CofMz |
|
January 31, 2020, 17:25 |
|
#35 |
New Member
Ali
Join Date: Dec 2019
Posts: 18
Rep Power: 6 |
Thank you for your comment. But, if you mean
MyAVExpressionX=Density*x and CofMx = volumeInt( MyAVExpressionX)@Domain / volumeInt(Density)@Domain it didnt work, and I faced to the same error. |
|
February 2, 2020, 19:00 |
|
#36 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,928
Rep Power: 28 |
And what is "the same error". The same as what?
Don't let us guess. Please share a screenshot or a text file. |
|
February 3, 2020, 08:35 |
|
#37 |
New Member
Ali
Join Date: Dec 2019
Posts: 18
Rep Power: 6 |
When I add this expression (CofMx) to a monitor point, this is the error that I face to:
Only arguments that consist of a single recognized variable name are supported by the solver. |
|
February 3, 2020, 11:22 |
|
#38 |
New Member
Ali
Join Date: Dec 2019
Posts: 18
Rep Power: 6 |
Dear Glenn,
Since I simulate turbulent and two-phase fluid (water and air), do you think that following expression give me more precise response? volumeInt(water.Density*water.Volume Fraction*z)@region/volumeInt(water.Density)@region Thank you so much. |
|
February 3, 2020, 17:15 |
|
#39 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
Opaque's post told you how to work around that error.
Whether your equation or my original equation is more accurate depends on what you are trying to do and what you are trying to measure. If you want the COM of the entire fluid domain then mine is the correct one. If you want the COM of the water fraction only then yours is the correct one. I don't know what you are trying to do, so cannot say what is correct.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
June 9, 2020, 09:17 |
Massflow rate monitor at an interface
|
#40 |
Senior Member
Join Date: Mar 2013
Location: Germany
Posts: 357
Rep Power: 14 |
Hi All
I have a channel inside which I have some wall with holes in it. I have interface at these holes as I have divided my domain as inlet domain and outlet domain. Now the thing is I need to monitor the massflow/volumeflow through these holes. I am not able to do this because when I give in OutputControl monitor, CFX says unvalid surface is selected In my expression I selected Interface_holes |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mass flow rate: calculation v/s computation | beguxa | FLUENT | 5 | December 2, 2018 22:02 |
Compressible Flow in Ansys CFX | bcheruk | CFX | 15 | July 6, 2017 07:30 |
in CFX, how to define a inlet condition of feedback control flow rate ? | suihenry | CFX | 12 | May 14, 2009 18:59 |
mass flow rate error | Masood | FLUENT | 0 | May 22, 2005 01:32 |
Mass Flow Rate Calculation | Paul | FLUENT | 9 | March 23, 2002 09:37 |