|
[Sponsors] |
July 7, 2011, 18:54 |
Expression with time function
|
#1 |
Member
vyc
Join Date: Jul 2011
Posts: 31
Rep Power: 15 |
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 |
|
July 7, 2011, 20:04 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,852
Rep Power: 144 |
CEL cannot access time the history of variables.
|
|
July 8, 2011, 13:42 |
|
#3 |
New Member
Daniel Leite Oliveira
Join Date: May 2011
Posts: 3
Rep Power: 15 |
Your question it's not to informative. Could you provide more details on that?
|
|
July 8, 2011, 17:34 |
|
#4 |
Member
vyc
Join Date: Jul 2011
Posts: 31
Rep Power: 15 |
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... |
|
July 10, 2011, 07:41 |
|
#5 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,852
Rep Power: 144 |
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. |
|
July 10, 2011, 16:48 |
|
#6 |
Member
vyc
Join Date: Jul 2011
Posts: 31
Rep Power: 15 |
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? |
|
July 10, 2011, 20:06 |
|
#7 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,852
Rep Power: 144 |
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. |
|
July 11, 2011, 15:44 |
|
#8 |
Member
vyc
Join Date: Jul 2011
Posts: 31
Rep Power: 15 |
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? |
|
July 11, 2011, 20:07 |
|
#9 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,852
Rep Power: 144 |
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.
|
|
July 12, 2011, 03:57 |
|
#10 |
Member
vyc
Join Date: Jul 2011
Posts: 31
Rep Power: 15 |
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 |
|
July 12, 2011, 19:50 |
|
#11 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,852
Rep Power: 144 |
If you need to use the value inside the simulation then it has to be fortran.
|
|
July 15, 2011, 07:59 |
|
#12 |
Member
vyc
Join Date: Jul 2011
Posts: 31
Rep Power: 15 |
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 |
|
July 16, 2011, 07:51 |
|
#13 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,852
Rep Power: 144 |
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. |
|
July 17, 2011, 10:06 |
|
#14 |
Member
vyc
Join Date: Jul 2011
Posts: 31
Rep Power: 15 |
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 |
|
July 17, 2011, 20:41 |
|
#15 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,852
Rep Power: 144 |
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. |
|
July 18, 2011, 05:42 |
|
#16 |
Member
vyc
Join Date: Jul 2011
Posts: 31
Rep Power: 15 |
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 |
|
July 18, 2011, 07:43 |
|
#17 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,852
Rep Power: 144 |
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. |
|
July 19, 2011, 14:11 |
|
#18 |
Member
vyc
Join Date: Jul 2011
Posts: 31
Rep Power: 15 |
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 |
|
July 19, 2011, 16:14 |
|
#19 |
Senior Member
Join Date: Apr 2009
Posts: 531
Rep Power: 21 |
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. |
|
July 19, 2011, 17:32 |
|
#20 |
Member
vyc
Join Date: Jul 2011
Posts: 31
Rep Power: 15 |
thank You for replay!
|
|
|
|
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 |