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

Expression with time function

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 7, 2011, 18:54
Default Expression with time function
  #1
Member
 
vyc
Join Date: Jul 2011
Posts: 31
Rep Power: 15
kestasposkus is on a distinguished road
Hello,
I want to add time function in to expression like this:
maxVal(Pressure)@.outer with different time

I have read CFX help but no were can found any info

BRGDS Vytas
kestasposkus is offline   Reply With Quote

Old   July 7, 2011, 20:04
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,852
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
CEL cannot access time the history of variables.
ghorrocks is offline   Reply With Quote

Old   July 8, 2011, 13:42
Default
  #3
New Member
 
Daniel Leite Oliveira
Join Date: May 2011
Posts: 3
Rep Power: 15
Daniel Leite Oliveira is on a distinguished road
Your question it's not to informative. Could you provide more details on that?
Daniel Leite Oliveira is offline   Reply With Quote

Old   July 8, 2011, 17:34
Default
  #4
Member
 
vyc
Join Date: Jul 2011
Posts: 31
Rep Power: 15
kestasposkus is on a distinguished road
Hello again!

my problem is 2 stroke engine muffler and here is very important shock waves it means that then I make optimization I solve 2 the same problems: one with time T (all discharge time) and over solution with T/5 (only 1/5 discharge time)
For that times I set my optimization targets
All this was fine, we produce muffler for to day it is one of the best in that class.
But now then I made model with two way model (CFX+ Transient structural) this problem would take too long time.
so my question is it possible in results window set equation with time/time step function?
I have been tried set function like this :maxVal(Pressure)@.outer*time*0.2 but I think this is not right too.
I hope that now my problem is much more clear...
kestasposkus is offline   Reply With Quote

Old   July 10, 2011, 07:41
Default
  #5
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,852
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Why do you want to do a transient structural model?

I do not understand what you are asking, but isn't the averaged mass flow rate of the engine very close to the swept volume * speed? You will have some difference due to scavenging but this is close enough to start with I guess.
ghorrocks is offline   Reply With Quote

Old   July 10, 2011, 16:48
Default
  #6
Member
 
vyc
Join Date: Jul 2011
Posts: 31
Rep Power: 15
kestasposkus is on a distinguished road
hell again,

Yes I did transient simulation and in results window I can changes of flow parameters like pressure velocity.
But for optimization I need equation with time function it means for example:

maxVal(Pressure)@outer at time 0,1s

maxVal(Pressure)@outer at time 0,005s

How set time equation with time history?

kestasposkus is offline   Reply With Quote

Old   July 10, 2011, 20:06
Default
  #7
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,852
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
No, my first question is why are you doing CFX + Transient structural models. I cannot see where FSI is required from what you have described.

You will have to look into workbench parameters to see if it can do what you ask. CEL certainly cannot as CEL does not store the time history of variables.
ghorrocks is offline   Reply With Quote

Old   July 11, 2011, 15:44
Default
  #8
Member
 
vyc
Join Date: Jul 2011
Posts: 31
Rep Power: 15
kestasposkus is on a distinguished road
hello,
I use Transient structural+ CFX due to that muffler wall is quite fin and pressure chances give some pressure vibration to wall, and this changing flow physics, all so wall thinness important to temperature changes between outer environment and inner hot gases.

More realistic parameters in the input gives more realistic in the out put

then I solve only CFX it take only 15min. then I sove Transient+CFX it takes 5...6 hours. I have in the input 10 dimension parameters so it means about 100 different DOE experiments so it means about 25days for that problem. Its to long and too big memory computer capacity requited.
So due to that I want to reduce solution model...
How over people receiving time history from CFX?
kestasposkus is offline   Reply With Quote

Old   July 11, 2011, 20:07
Default
  #9
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,852
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
I see. As has been said previously you cannot access time history through CEL. You can either write your own fortran routine to do it if you need it in the simulation, or you can use a monitor point to export the data and access it in post-processing if that is suitable.
ghorrocks is offline   Reply With Quote

Old   July 12, 2011, 03:57
Default
  #10
Member
 
vyc
Join Date: Jul 2011
Posts: 31
Rep Power: 15
kestasposkus is on a distinguished road
hello,

Do You have any idea how with fortran set time function?
When You wrote about monitor point You mean CFX Prep settings monitor user parameters which during solution I can monitor? But in that way I can not set equation for my optimization target

Best regards
kestasposkus is offline   Reply With Quote

Old   July 12, 2011, 19:50
Default
  #11
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,852
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
If you need to use the value inside the simulation then it has to be fortran.
ghorrocks is offline   Reply With Quote

Old   July 15, 2011, 07:59
Default
  #12
Member
 
vyc
Join Date: Jul 2011
Posts: 31
Rep Power: 15
kestasposkus is on a distinguished road
hello,

I have read Yours replay but still do not understood
how set any variable in any time

lets say pressure
or speed

I have been try different approaches more the one year,
but still get now right way

so

how is set
pressure if
all time is 1s
but I wanted some parameters at time 0,5s?

Best regards Vytautas
kestasposkus is offline   Reply With Quote

Old   July 16, 2011, 07:51
Default
  #13
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,852
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
You will have to set up a fortran function which stores the values as the simulation progresses and returns it later in the simulation when required.

I have done many simulations of exhaust systems over the years and have never had the need for a function like what you describe. I used a mass flow rate boundary at the exhaust valve and a pressure boundary a little way out from the pipe end. No need for history functions.
ghorrocks is offline   Reply With Quote

Old   July 17, 2011, 10:06
Default
  #14
Member
 
vyc
Join Date: Jul 2011
Posts: 31
Rep Power: 15
kestasposkus is on a distinguished road
hello, ghorrocks

You say that You have made simulation of the exhaust system,

But is it was 2 stroke engine or 4 stroke engine?
for 4 stroke engine I have seen some jobs then it was used steady state
but for 2stroke engine it is no good back pressure waves create about 30..40 percent more engine power

and AS I see that it is very difficult set time step or time in the equation...

Any way sorry for my English

Brgds Vytautas
kestasposkus is offline   Reply With Quote

Old   July 17, 2011, 20:41
Default
  #15
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,852
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
I have modelled both 4 stroke and 2 stroke engines.

Modelling the exhaust with steady flow is of limited use. Whether it is 2 or 4 stroke you will get much more information out of a transient model. You define a mass flow rate versus time/crank angle curve and apply that as a mass flow boundary at one end of the pipe.

For engines where the cylinder is closely coupled with the exhaust (eg 2 stroke engines or 4 stroke engines with wide overlap) then consider including the cylinder in the calculation.
ghorrocks is offline   Reply With Quote

Old   July 18, 2011, 05:42
Default
  #16
Member
 
vyc
Join Date: Jul 2011
Posts: 31
Rep Power: 15
kestasposkus is on a distinguished road
hello,

On my picture is pressure wave in the muffler during exhaustion process.
the problem is equation sum few time moments during gas flowing

I want equation like that:

Pressure 1+ Pressure 2 +Pressure 3... =?

How?

Moving piston + cylinder + muffler - very good Idea!

BRGDS

Vytautas
Attached Images
File Type: jpg slegio shuoliai.jpg (15.8 KB, 39 views)
kestasposkus is offline   Reply With Quote

Old   July 18, 2011, 07:43
Default
  #17
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,852
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
I did not understand your last post and the image is not readable.

But I explained how this sort of modelling is normally done - determine the mass flow rate versus crank angle. You might be able to guess this from the swept volume and valve motion/discharge coefficients but you will probably need a 1D exhaust modelling simulation to get this. Alternately you might be able to put a pressure transducer in the exhaust pipe and get a pressure versus time chart and use this - not as good in my experience but easier to get the boundary information.
ghorrocks is offline   Reply With Quote

Old   July 19, 2011, 14:11
Default
  #18
Member
 
vyc
Join Date: Jul 2011
Posts: 31
Rep Power: 15
kestasposkus is on a distinguished road
hello,

I tried to make mesh movement the task but I'm not sure about the interface setup and constantly throws me the error:

A negative SECTOR volume has been detected. Execution will proceed |
| but this is a possible cause of robustness problems.

I started form single solid movement then it was good I put two solids but I am not clear how to manage with interface set ups

picture added..

Pls help me

Vytautas
Attached Images
File Type: jpg kai interferencija.jpg (38.2 KB, 42 views)
kestasposkus is offline   Reply With Quote

Old   July 19, 2011, 16:14
Default
  #19
Senior Member
 
Join Date: Apr 2009
Posts: 531
Rep Power: 21
stumpy is on a distinguished road
The region you highlighted should be a domain interface. After creating the interface you'll have "... Side 1" and a "... Side 2" boundary conditions. Edit these boundary conditions and change the mesh motion setting to something appropriate (stationary, specified displacement, etc).
Note that if you have a stationary boundary next to a moving boundary then you can expect problems where the two meet. Your mesh motion boundary conditions need to be consistent where two boundaries meet.
stumpy is offline   Reply With Quote

Old   July 19, 2011, 17:32
Default
  #20
Member
 
vyc
Join Date: Jul 2011
Posts: 31
Rep Power: 15
kestasposkus is on a distinguished road
thank You for replay!
kestasposkus is offline   Reply With Quote

Reply


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
Extrusion with OpenFoam problem No. Iterations 0 Lord Kelvin OpenFOAM Running, Solving & CFD 8 March 28, 2016 12:08
Full pipe 3D using icoFoam cyberbrain OpenFOAM 4 March 16, 2011 10:20
directMapped problem panda60 OpenFOAM Bugs 4 July 8, 2010 11:23
calculation diverge after continue to run zhajingjing OpenFOAM 0 April 28, 2010 05:35
AMG versus ICCG msrinath80 OpenFOAM Running, Solving & CFD 2 November 7, 2006 16:15


All times are GMT -4. The time now is 00:40.