Page 1 of 2 12 LastLast
Results 1 to 15 of 21

Thread: Computational Fluid Dynamics (CFD) Q&A

  1. #1
    Join Date
    12th October 2016 - 01:24
    Bike
    1964 Vespa GS
    Location
    San Francisco
    Posts
    101

    Computational Fluid Dynamics (CFD) Q&A

    Starting this thread to share tips and tricks for simulating 2D and 3D flows in engines. The hope is that we can build up a database of tools and common settings/methods that deliver reliable results, and that this will allow us to investigate and validate engine design ideas. There are many tools openly available now, but it's still a steep learning curve. Hope this helps.

    Fancy picture to inspire you to give it a go:
    Click image for larger version. 

Name:	Screen Shot 2021-02-07 at 12.53.28 .jpg 
Views:	87 
Size:	135.7 KB 
ID:	348867
    Velocity flow lines exiting the exhaust port
    Patrick Owens
    www.OopsClunkThud.com

  2. #2
    Join Date
    12th October 2016 - 01:24
    Bike
    1964 Vespa GS
    Location
    San Francisco
    Posts
    101
    Following is a list of tools and resources:

    Online Service:
    https://www.simscale.com web based service to generate the mesh, run the simulation, view the results. Well organized and documented, a great way to get started.


    Mesh Tools:
    http://gmsh.info

    Simulation / Solver:
    https://su2code.github.io
    https://openfoam.org

    Visualization:
    https://www.paraview.org
    Patrick Owens
    www.OopsClunkThud.com

  3. #3
    Join Date
    20th April 2011 - 08:45
    Bike
    none
    Location
    Raalte, Netherlands
    Posts
    3,341
    Quote Originally Posted by OopsClunkThud View Post
    Click image for larger version. 

Name:	Screen Shot 2021-02-07 at 12.53.28 .jpg 
Views:	87 
Size:	135.7 KB 
ID:	348867
    Velocity flow lines exiting the exhaust port
    A textbook example of eddies resulting from an exhaust floor that is too low for the blowdown phase.

  4. #4
    Join Date
    18th April 2017 - 23:08
    Bike
    Moped
    Location
    Swe
    Posts
    400
    Hi Fun with this thread! Good initiative. I thought I could repost the latest test I did where I tried to compare CFD with a real test in dyno.
    Can not say that I became completely wise but a simple little test that can still give an insight into what CFD can do. (For oneself, however, there is a long way to go before you feel that you know what you are doing)


    Engine: tm kz-R1
    Dyno: Dynostar
    EGT: Auto release 550 ° C
    Compensation: 0.025 hp / kmh driveline loss (shown as 0.03)
    Water temperature: 50c ° (external temperature controlled coolant)

    Test: Dyno
    Purple: With air box (Righetti)
    Green: Without +5 on jetting for the same EGT for all below
    Red: With little Bellmouth
    Blue: With huge Bellmouth


    Test: CFD

    - Without Bellmouth
    - Little Bellmouth
    - Very large Bellmouth
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	Skärmavbild 2021-04-14 kl. 18.37.42.jpg 
Views:	82 
Size:	332.9 KB 
ID:	348871   Click image for larger version. 

Name:	Skärmavbild 2021-04-14 kl. 18.53.29.png 
Views:	68 
Size:	91.0 KB 
ID:	348872   Click image for larger version. 

Name:	Skärmavbild 2021-04-14 kl. 18.54.23.png 
Views:	68 
Size:	91.2 KB 
ID:	348873   Med (lila) vs utan (gron) vs l iten (röd) vs stor (Blå) BM.pdf  
    No amount of experimentation can ever prove me right; a single experiment can prove me wrong.

  5. #5
    Join Date
    26th September 2009 - 11:57
    Bike
    Honda cb600 Hornet
    Location
    Auckland
    Posts
    22
    This may we'll show my ignorance, but the post is labelled fluid flow dynamics, but the diagram and comments seem to refer to gas flow dynamics. Obviously gas flow and fluid flow are modelled by different formulas (gasses being compressible and fluids having different viscosities.

    Sent from my Mi Note 10 Pro using Tapatalk

  6. #6
    Join Date
    18th April 2017 - 23:08
    Bike
    Moped
    Location
    Swe
    Posts
    400
    Hi both liquid and gas is a fluid. Then exactly as you say, substances have different properties in terms of eg viscosity, density and compressibility. but all fluids can be calculated with Navier-Stokes equations

    Many fluids can be either liquid or gas depending on the pressure
    No amount of experimentation can ever prove me right; a single experiment can prove me wrong.

  7. #7
    Join Date
    12th October 2016 - 01:24
    Bike
    1964 Vespa GS
    Location
    San Francisco
    Posts
    101
    the difference between a "fluid" and a "gas" has a lot to do with the conditions, and you go for the simplest model that will give the needed accuracy in the result.

    at the speeds of a motorcycle (or even an F1 car) assuming that the air is incompressible gives good results and is way easier to calculate. Rule of thumb is that this holds up to about Mach 0.3 and above that the reality of the gas compressing starts to impact the results.

    Hopefully we can build out some examples of what settings to run in what situation.
    Patrick Owens
    www.OopsClunkThud.com

  8. #8
    Join Date
    12th October 2016 - 01:24
    Bike
    1964 Vespa GS
    Location
    San Francisco
    Posts
    101
    First attempt to calibrate 3D flow in Simscale with the 1D results in EngMod2T
    https://www.simscale.com/projects/Oo...junction_flow/

    The engine targeted for this examination is a Lambretta TV175 with an aftermarket Imola cylinder running a stock 62mm bore and 58mm stroke on a 116mm rod. The transfer ports have sufficient STA for 30hp at 8500rpm with the A port timing duration of 127°. The placement of the studs limits the use of auxiliary exhaust ports so every effort is being made to optimize a single port. The exhaust port has an open duration of 190° and a 70% of bore width of 43.4mm. The initial downward angle of the port was set to 10° in order to provide sufficient blowdown area.

    Comparison of 3D and 1D Simulations
    EngMod 2T was used to simulate the engine, and the cylinder and exhaust port pressure, temperature, and mass flow rate data was extracted from the output files. The cylinder and exhaust port was modeled with straight side walls and 10° downward angle as defined in EngMod with the piston positioned at 8° intervals through the blowdown period as well as fully opened. Steady state turbulent flow was simulated through these models, matching the cylinder pressure and temperature at each crank position. The walls were held at the same constant temperature as used in EngMod, and were tested with both a slip and no-slip boundary condition.

    Images showing the velocity for the slip boundary conditions:
    Click image for larger version. 

Name:	Screen Shot 2021-04-18 at 15.47.42 .png 
Views:	32 
Size:	169.2 KB 
ID:	348889Click image for larger version. 

Name:	Screen Shot 2021-04-18 at 15.48.49 .png 
Views:	47 
Size:	168.3 KB 
ID:	348888Click image for larger version. 

Name:	Screen Shot 2021-04-18 at 15.49.49 .png 
Views:	45 
Size:	168.1 KB 
ID:	348887Click image for larger version. 

Name:	Screen Shot 2021-04-18 at 15.51.09 .png 
Views:	43 
Size:	180.4 KB 
ID:	348886

    Mass Flow Rate of EngMod, Slip, and No-Slip
    Click image for larger version. 

Name:	Screen Shot 2021-04-18 at 16.03.15 .png 
Views:	44 
Size:	144.3 KB 
ID:	348892

    The mass flow rate at the entry was captured and compared to the values from EngMod. The slip wall boundary closely matched EngMod throughout the blowdown period with the steady state value being within 3% of the unsteady 1D model. The steady state flow of the fully opened port was more than 7% higher than in EngMod and the steady state condition had not yet been reached.

    Click image for larger version. 

Name:	Screen Shot 2021-04-18 at 16.03.31 .png 
Views:	33 
Size:	120.6 KB 
ID:	348891

    While the results are not bad for a first calibration, there are known areas where improvements could be made:
    1. The fluid used in the simulation was air. This should be changed to reflect the actual combustion products
    2. Viscosity was set as constant (for air). this could be improved by using a constant value based on the combustion products, or by using the Sutherland model
    Patrick Owens
    www.OopsClunkThud.com

  9. #9
    Join Date
    4th December 2011 - 22:52
    Bike
    Yamaha XJ750 1982
    Location
    South Africa
    Posts
    219
    The videos by Steve Brunton on turbulence is very good, he shows the difference between RANS and LES in this video:

    https://www.youtube.com/watch?v=zIQpxmLwbXQ

    But he has a number of other videos on turbulence modeling that is as good. The one linked here is just the latest one in a series on turbulence and the Navier-Stokes equations.

  10. #10
    Join Date
    12th October 2016 - 01:24
    Bike
    1964 Vespa GS
    Location
    San Francisco
    Posts
    101
    Quote Originally Posted by Vannik View Post
    The videos by Steve Brunton on turbulence is very good, he shows the difference between RANS and LES in this video:

    https://www.youtube.com/watch?v=zIQpxmLwbXQ

    But he has a number of other videos on turbulence modeling that is as good. The one linked here is just the latest one in a series on turbulence and the Navier-Stokes equations.
    Great video! thanks for posting that.

    S.A.E. Miller has some good materials on mesh generation here:
    https://www.youtube.com/playlist?lis...v9pgDtIei-CYs_
    Patrick Owens
    www.OopsClunkThud.com

  11. #11
    Join Date
    12th October 2016 - 01:24
    Bike
    1964 Vespa GS
    Location
    San Francisco
    Posts
    101
    I've been running a large matrix of 2D simulations in SU2 of the exhaust mass flow rate over the following parameters:
    Piston Crown Angle: 0, 5, 10, 15°
    Exhaust Roof Angle: 0, 5, 10, 15, 20, 25, 30°
    Crank Position ATDC: 85 (EPO), 90, 95, 100, 105, 110, 115 (TPO), 120, 125, 130

    Still analyzing the data, but an interesting observation popped out.

    At ATDC 130° there is a huge amount of turbulence in the horizontal exhaust (top image), and it's smoother as the port angles downward (best ~20°). I had been looking at the blowdown phase to maximize flow. But seeing this got me thinking about the mixing of exhaust with the fresh charge that the turbulence would cause.

    Click image for larger version. 

Name:	0-X-130.jpg 
Views:	56 
Size:	689.3 KB 
ID:	348936
    Patrick Owens
    www.OopsClunkThud.com

  12. #12
    Join Date
    18th April 2017 - 23:08
    Bike
    Moped
    Location
    Swe
    Posts
    400
    I think it has been tricky to get a definite idea of what might be the best way to try to simulate the flow at a certain port angle. I have reasoned as if I divide the time area at a selected RPM by the area for the simulation and thereby get a time interval to study. How do you view this issue

    I can also recommend Michel van Biezen if you are interested in fluid dynamics in general, not just simulations

    https://m.youtube.com/watch?v=GM627aCRwcc

    regards Johan
    No amount of experimentation can ever prove me right; a single experiment can prove me wrong.

  13. #13
    Join Date
    12th October 2016 - 01:24
    Bike
    1964 Vespa GS
    Location
    San Francisco
    Posts
    101
    For now I'm running everything as steady state but at each given crank angle I use the pressure, temp... from the 1D simulation for my boundary conditions and fluid properties. To do a proper transient simulation would require taking the flow state at the output of one step as the initial condition for the next. The 2D model is simple enough that I think this is possible, and SU2 gives a restart file that could be used as the input. I've built my mesh so that it keeps the same cell count and structure as the piston moves through the angles, but I've not tried this yet.

    In the series above where all cases are at ATDC = 130°, I used the same boundary conditions with a different CAD model (exhaust from horizontal to 30° down in 5° steps).

    I build a configuration file that has the test parameters, fluid properties, and boundary condition values and use that to drive the generation of CAD, mesh, and CFD config files. Here's a shot of the flat piston and 20° downward port, with the piston moving 5° between each step.

    Click image for larger version. 

Name:	Screen Shot 2021-04-28 at 18.08.44 .png 
Views:	32 
Size:	232.7 KB 
ID:	348938
    Patrick Owens
    www.OopsClunkThud.com

  14. #14
    Join Date
    18th April 2017 - 23:08
    Bike
    Moped
    Location
    Swe
    Posts
    400
    Good work!!! It will be very interesting to see the results of these adjustments you are making. waiting with excitement
    No amount of experimentation can ever prove me right; a single experiment can prove me wrong.

  15. #15
    Join Date
    12th October 2016 - 01:24
    Bike
    1964 Vespa GS
    Location
    San Francisco
    Posts
    101

    Workflow

    On my prior run of simulations the scripts were just to get the job done to prep the data for running. They were hard coded to the models and cases I was running. Now I'm cleaning them up so they can be general tools for planning, preparing, and running a test plan including many simulations.

    First up is a Fusion 360 script that can set the user parameters in a model and then export the file in STEP format. This is how I loop through the piston position for each crank angle as well as the port and piston angles. It could also be used like a Creo Family table to create variations on a design.

    https://github.com/OopsClunkThud/BulkStepExport
    Patrick Owens
    www.OopsClunkThud.com

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •