|
[Sponsors] |
Need some help with changing boundary condition types in a transient simulation. |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 18, 2018, 20:31 |
Need some help with changing boundary condition types in a transient simulation.
|
#1 |
New Member
Michigan
Join Date: May 2018
Posts: 3
Rep Power: 8 |
Hi, I'm trying to run a transient simulation of an intake system for a four cylinder engine. I want to set the boundary conditions for the four outlets as pressures and I have been able to read transient pressure data from a table. However, I don't know how to simulate the opening and closing of the intake valve properly. My first thought was that the boundary type needed to change from a pressure outlet to a wall condition mid simulation although I'm not sure this is possible. I'm not that proficient with the script language and I wasn't able to get a conditional statement to work in the command editor thing. Any help would be great thanks!
|
|
May 19, 2018, 07:50 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,872
Rep Power: 144 |
I assume the pressure you are trying to apply is the cylinder pressure. Maybe you could make the valve boundary a mass flow rate boundary, and calculate the mass flow rate based on the pressure difference across the valve from the manifold to the cylinder using the valve flow coefficients (which hopefully you know). You can easily set the mass flow rate to zero when the valve is shut this way.
By the way, you may be interested in my PhD thesis where I used CFX to model the inlet manifold and cylinder of an IC engine: https://opus.lib.uts.edu.au/bitstrea...14/01Front.pdf
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
May 19, 2018, 13:01 |
|
#3 |
New Member
Michigan
Join Date: May 2018
Posts: 3
Rep Power: 8 |
That's correct, I have cylinder pressure data for the intake stroke from 1d sims. I was intending to have mass flow to each cylinder be an output of the simulation. Is it necessary to model the movement of the valves to do this? Or is there someway to modify the boundary condition type?
If it is more common to set mass flow boundary conditions at the outlets then perhaps I'm going about this incorrectly but regardless thanks for your help. |
|
May 20, 2018, 06:58 |
|
#4 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,872
Rep Power: 144 |
In my suggestion the mass flow rate would be an output of the simulation. That is because the mass flow rate is a function of the inlet manifold pressure at the valve. The mass flow rate is not pre-determined.
If you are modelling a standard poppet valve engine and are only interested in the inlet manifold waves then you are not going to loose much by not modelling valve motion, and just applying a boundary condition on the valve curtain face at the fully open position. Please note that my suggestion is just one way of doing it. What is best depends on what information you have to drive the simulation (you say you have cylinder pressure data). A final comment - the cylinder pressure is coupled to the inlet manifold, so if you require more accuracy you should not assume a cylinder pressure but should model it. This adds considerably to the complexity of the simulation, and whether that complexity is worth it depends on what you are trying to achieve.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
May 20, 2018, 20:48 |
|
#5 |
New Member
Michigan
Join Date: May 2018
Posts: 3
Rep Power: 8 |
I was hoping to look at both the pressure waves through the manifold as well as the cylinder to cylinder variation of mass flow. I'm still a little unsure how the mass flow would be an output if I set the boundary conditions as mass flow derived from cylinder pressure? Previously I had just done steady state simulations to check mass flow variation with just a pressure drop. Unless I'm missing something, setting the outlet condition as a mass flow would mean all four cylinders would get equal mass flow (I'm using the same pressure trace for each cylinder).
Thank's a bunch for your help! |
|
May 21, 2018, 07:21 |
|
#6 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,872
Rep Power: 144 |
Yes, you are missing something
The valve discharge coefficient is defined here: https://en.wikipedia.org/wiki/Discharge_coefficient You can recast this as m(dot) = C(d).A.sqrt(2.rho.deltaP). You should know C(d) and A from the valve opening area, rho is the density at the boundary and deltaP is the difference between the pressure at the boundary and your function's cylinder pressure. The equation gives you m(dot) which you can apply as a mass flow rate at the inlet valve. So you are not specifying a fixed mass flow rate, you are specifying a variable mass flow rate which is a function of your inlet manifold pressure. When your inlet manifold pressure changes so will your m(dot). Does that clarify it a bit?
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
Tags |
cfx |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wind turbine simulation | Saturn | CFX | 60 | July 17, 2024 06:45 |
sliding mesh problem in CFX | Saima | CFX | 46 | September 11, 2021 08:38 |
add source terms, user-defined boundary condition and set up a transient simulation | zhengjg | SU2 | 1 | January 30, 2014 01:54 |
CFX fails to calculate a diffuser pipe flow | shenying0710 | CFX | 7 | March 26, 2013 05:13 |
changing a boundary condition during simulation | halfrhovsquared | FLOW-3D | 2 | May 18, 2012 15:20 |