r/OpenFOAM • • 3d ago

Airbox Simulation

Post image

Hey guys! Is OpenFOAM enough to use if I need to simulate how a custom airbox will perform on an NA bike? Especially the pulse of the engine. Any suggestions, please? Thank you!

8 Upvotes

5 comments sorted by

3

u/JollyInterview9989 3d ago

You definitely can but it all depends on your experience. OpenFoam has a very steep learning curve when compared to others and the bare bones is text and terminal command based.

That said a lot of people are just using LLM to do all that and get to result. If you don't have any paid LLMs probably suggest to use any of the GUI wrappers out there.

The biggest problem with engine pulse based runs is its transient and will require lot of runs to emulate the frequency rate of change of flow rate so its more of a sim size and time problem than capability.

Try out simple 2D cases with proper BCs first and then move to 3D once confident.

My simple openfoam wrapper plug - https://github.com/dhanninacs/stokes-cfd

Adding transient GUI stuff as we speak. Let me know if you need any guidance.

2

u/Dull_Snow_1657 3d ago

Thanks! I'm running OpenFOAM v2606 scripted, with a 1D engine model for the pulses and OpenFOAM for the steady box and filter losses. Will check out Stokes.

1

u/JollyInterview9989 3d ago

Do share the CAD if its not something proprietary and I'll give it a go tonight.

1

u/its1310 3d ago

Checkout anantasim as well. There you can quickly try. Use AI generate to create a rough cad then use one of the prebuilt setup for simplefoam to simulate. If it works you can try with actual cad import.

1

u/its1310 3d ago

Use inlet as a flowrate with time to simulate engine pulse.