r/CFD • • 13m ago

My attempt at building a mesher mantle

Thumbnail
gallery
5 Upvotes

I've been working on a side research project: an open-source mesher called mantle. STL in, OpenFOAM case + native SU2 mesh out. It's written in Rust and still very much a work in progress, but it has reached the point where I'd love some outside eyes on it.

The idea is to flip the usual order. Instead of making a background mesh and then trying to squeeze prism layers in afterwards (which is where snappyHexMesh tends to give up at small y+), mantle first builds a smooth "shell" around the body at the boundary-layer thickness. It fills the space between the shell and the wall with the layers, and only then fills everything outside with an octree hex core. So the layers aren't an afterthought; they're the first thing that exists.

Things I've been fighting with lately: faceted leading edges (columns collapsing onto facet edges, fixed by extruding along smoothed wall normals), and sharp trailing edges (fans with one layer direction per neighbouring cell, a bit like what T-Rex does).

I ran a head-to-head on the ONERA M6 wing at y+ ≈ 1 (29 layers, first cell 5.8e-6), same STL and same sizing for everyone:

  • mantle: the requested first cell over 99.998% of the wall
  • snappyHexMesh: layers collapse almost everywhere. I tried 6 configurations (relative/absolute sizes, feature angles, both mesh shrinkers) to make sure it wasn't just bad settings on my end
  • cfMesh: about 13% on target, plus a lot of negative cells

To be fair to snappy, it always gave me a valid mesh: it just drops layers where they'd break its quality rules. mantle keeps the layers, but at y+ 1 it still leaves around 10 invalid cells at the wing-tip trailing-edge corners, where the wing is thinner than the layer stack. That's what I'm working on next. I also checked a second wing it was never tuned on, and the results held up.

All the scripts and numbers are in the repo if anyone wants to poke at them or reproduce them: https://github.com/Syphonicc/mantle

What I'd really appreciate:

  • STL files that break your current mesher (or mantle!)
  • Thoughts from people who do wall-resolved RANS: what would make you actually trust a new mesher?
  • Anything that looks off in the comparison

It's a research prototype, not production-ready, so be gentle but honest :)


r/CFD • • 9h ago

Doubt regarding inflation settings and stair stepping

Thumbnail
gallery
19 Upvotes

Hi all,

I have one small question- Please refer all those 3 images. I have chosen all those faces as indicated in 2nd figure, and given same inflation settings(i.e first layer height and no of layers), but still I don't get why inflation is kind of compressed at the start and produces stair-stepping issue.

Internal diameter is 1mm, wall thickness is 0.25mm. Cylindrical stem diameter is 4mm.
For internal hole, first layer height is 9e-06, no of layers is 10, growth rate is 1.2
For outer wall and cylindrical stem, first layer height is 7e-06, no of layers as 25, growth rate is 1.2.

Is this inevitable or there is some workaround for this? Thanks in advance.


r/CFD • • 5h ago

I don't understand what I'm doing wrong

Thumbnail
gallery
10 Upvotes

I have troubles so I will add short context and then jump to what I've done.

I've only received 6 hours of explaination on CFD as a fraction of a broader more theory-oriented class on environmental fluid mechanics. This isn't criticism, I'm happy for this little project because from a zero experience standpoint this is amazing to me; still, I have to make a report on the project and I wanted it to be as good as possible.

What I've done different from the lesson is making the mesh much thicker around the buildings, because I was recently invited to make the simulation larger than it originally was, so that the atmosphere could behave better. Apparently, building to mesh dimension-ratio matters, so I've made it much taller and longer.

I've run into the following issues; the numbers refer to the images:

  1. For the longest time and for many attempts, what usually happens is that I get a solution but it's obviously wrong: basically the atmosphere is impacting the building but the lower portion is stuck recirculating in the bottom while the upper side speeds up in proximity to the roofs. I do recall this: while these ("wrong") simulations where running - I couldn't see Uy residual appearing on the graph. That was my indicator that I was taking the wrong turn.
  2. I swear to God I don't recall ever changing anything about the boundary conditions. At a certain point, while fiddling with the meshes, I saw Uy appear as a residual. After letting the calculation converge the result was what's shown. I have reason to believe this is also wrong: even tho it would feel correct to have the flow come down to the ground, since no gravity is involved in this how would that happen in the simulation? (I feel very stupid for this because it feels both right and wrong in my head).
  3. Image shows the first working(-ish) mesh since everything I had tried before this one was resulting in either errors (and I would change boundary conditions) or improper flows similar to picture 1.
  4. Since the mesh had worked I chose to finally try to make it as thick as simflow would allow. I've used 196 000 of 200 000 nodes, refining the mesh around details I assumed more important. THE RESULT CHANGED AGAIN? What's crazy to me is that now it feels even more correct than before, because in class, with a much smaller and less refined mesh, it looked exactly like this, and it was done by a professor.
  5. Last image is the final mesh and that which I will be using for a bunch of other tests that will be the basis for my report.

So the concluding issue is this: I have no experience to understand and be perfectly in control of the simulation, and that is both frutstrating and scary. Frustrating, because they run on a 2015 i7 that takes a lot of time both making iterations for more refined meshes AND solving the model on them. "Scary", because the first time it properly converged (picture 2) IT ACTUALLY FELT RIGHT, Before I would discover that a following attempt would look even more correct.

Navigating the internet I've discovered that there's a whole new subject around mesh analysis that I didn't know about. I can't go too deep into all of these, for I'm taking 5 classes this semester, but to make a good report I feel underequipped.

Let me know what you think. I'm really scared the issue might be in front of my eyes.


r/CFD • • 6h ago

Turbine Analysis (Solidworks Flow Simulation)

0 Upvotes

I've been trying to simulate water flow through a simple turbine system but for some reason I keep getting negative pressure (like really low for example -5 x 10^-9 Pa) even though the geometry is fine and there's no leakage... I tried turning on cavitation but the tracking function of the solver doesn't even recognize the turbine at all. Furthermore there's sufficient space between my rotating region, turbine model and casing wall. Please I need some input...


r/CFD • • 9h ago

Is it worth looking into vortices at subsonic speeds?

0 Upvotes

This question primarily stems from back when I discovered vortex lift for flying wings, so ever since, I've been wondering if its worth looking into it with the hope of turning it into a final year project.


r/CFD • • 22h ago

Need help with UDF and UDS in Fluent

Thumbnail reddit.com
1 Upvotes

Hey guys. Any help would be appreciated

Thanks!


r/CFD • • 3d ago

Same setting different results

2 Upvotes

Hi everyone,

I am not very experienced with ANSYS Fluent, as CFD constitutes only a small part of my research project, so apologies if this is a basic question.

I originally conducted a set of simulations in 2024. Recently, I repeated some of these simulations using exactly the same settings, but obtained different results from those in 2024.

I have since repeated the simulations multiple times, and all the recent runs produce identical results. The discrepancy only exists between the original 2024 results and the recent results, despite using identical simulation settings.

Does anyone know what could potentially cause this discrepancy?

Many thanks in advance!


r/CFD • • 3d ago

Has any one been hired recently in Germany in a simulation-based role? Because I see so many job postings but I'm not even sure if they are real at this point. Need an industry insider to advise on this.

29 Upvotes

I see a lot of job postings in Germany for Thermal Engineer/CFD/Simulation, but no interviews and all I get is mail rejections. Are these postings even real or are they given to referrals/internal roles? Any recent hires you've met?

I'm trying to level up for the market on several levels, including the language, but I just want anyone to confirm if these job postings are legit because I'm not even sure at this point. Is anyone here possibly going through recruitment processes in Germany or was recently hired that can give advice?


r/CFD • • 3d ago

Need simplification Idea for Gearbox Oil Sloshing

6 Upvotes

Hello all, for a gearbox oil Sloshing, I need to estimate oil temperature for actual 5 hours (18000 physical time seconds) which is computationally so huge. Now I'm exploring some other options to simply the Simulation.

As for Sloshing and power losses we can stop until report, monitor plot stabilizes. But the estimating the heat generation of the oil, I believe it would actually need 18000s simulation (which I can't afford) so let me know if there's any update.

Thank y'all


r/CFD • • 4d ago

How to determine boundary layer thickness and regime (laminar vs turbulent) in a complex rotating URANS (k-omega SST) simulation?

4 Upvotes

Hi everyone,

I’m running a fairly complex URANS simulation (k-omega SST) involving a rotating region, pipe flows, and strong pressure gradients. Because of the centrifugal forces and complex geometry, there is no well-defined free-stream velocity and I can't easily tell beforehand whether the flow in certain regions is locally laminar or turbulent.

I have two main questions for post-processing:

  1. Since standard k-omega SST assumes fully turbulent flow, how can I reliably check if a boundary layer is actually laminar or truly turbulent in my results?
  2. How do you define and extract delta99 when there is no constant free strean velocity due to rotation and strong pressure gradients?

Any advice or standard post-processing tricks for rotating/internal flows would be greatly appreciated!


r/CFD • • 4d ago

Hell Guy. This is My 3rd Post here. You Guys Helped me a lot. Can you guys look at these Results Please. These are for my Research. The Solution converged at 170/180. Do you think it’s Correct?

Thumbnail
gallery
26 Upvotes

Geometry Length is 2.1m.


r/CFD • • 4d ago

How to do meshing with void in Fluent Meshing

Thumbnail
gallery
4 Upvotes

Hi all,

I have a flow of open jet with probe modelled in downstream. I was able to model the probe correctly and fluid region is obtained by subtracting original fluid volume by probe volume.

I dont know, when I generate the mesh, full probe is not visible, and mesh are generated inside the stem(i.e inside the void which is not required). Solid probe is modelled for investigating probe intrusive effects, no requirement of flow going inside the stem and all, blind hole is modelled in front of the stem. See figure 1 & 2.

Regarding geometry/ describing regions, I also tried "geometry consists of  both fluid and solid regions or voids"and gave No to- will you cap openings and extract regions, then I got subsequent warnings shown in figure 5.

Before probe modelling, to analyse data for undisturbed flow field, there is void in inlet pipe, but still I have given- The geometry consists of only fluid regions with no voids,  I didnt face this problem at that time. But now probe is modelled in downstream and full probe is not visible and for top cylindrical steam ,mesh is generated inside the stem which is not expected. I would really appreciate if you could please elaborate me what can be wrong here. See figure 5 and 6 for sectional view of the modelled probe.

I just want to know why entire probe is not coming, why mesh cells are filled inside the void, is there anything wrong in model/ setup/ geometry and describing regions. What is correct way/strategy/ approach to do meshing with void(no mesh cells should be there inside probe) and full object must be visible.

One small trivial question- I have modelled frustum and cylinder for boi, if these boi region falls with modelled probe, will that affect or make object less visible or fill mesh in unwanted regions like inside cylindrical stem, I just thought this casually. If not, leave this theory. I just want to know why entire probe model was not visible in meshing tab. Whats wrong in my setup??


r/CFD • • 4d ago

How to update Region/Boundary to new part in Star-CCM+

Thumbnail
gallery
6 Upvotes

Messing with a wing and via the transom operation (to track the AoA change) i rotate a simple wing. The problem is that even after re-running the Surface Wrapper and Automated Mesh, the solver and mesh still reference the old pre transform model.

Per the pics. I 2 parts. The Smooth and the Smoot-0Aoa_ref (this was just a copy/paste of the smooth to easier see the changes/lack off).

It's not just UI issue where in mesh it is showing the old aoa, but the solver does against the new. No the solver still behalves the exact the same and pumps out the same values (lift/drag). So even if i set the wing to 90°, no change. Per the pics, i have set smooth to 10°, have re-executed the Wrapper,Auto mesh and yet it still reference the old geometry in the boundary/region.

I have tried to delete the Surface Wrapper, under the parts tree and re-run the wrapper/auto mesh operations. But that did not work.

It seems i need to delete the Region, but that would mess with the scenes, visualizations and reports.

Please say there is a better way/ I am doing something wrong.


r/CFD • • 4d ago

Doubt regarding meshing and modelling in ANSYS Fluent

Thumbnail
gallery
6 Upvotes

Hi guys.

I have some doubt for modelling and meshing. Initially I was not able to apply boolean for these objects since those cylinders were intersecting at one point, so I increased outer diameter from 1.2 to 1.21 and boolean was working**(See figure1)**

All outer pipe diameter was taken as 1.21 only. Then boolean unite is done with these three holes with cylindrical stem, then subtracted with entire fluid volume to get net fluid volume for CFD to solve. (See Figure 3)

You can see right side view, where fluid goes inside hole and thats it, it is blocked from that end**(See Figure4)**

When I try to do meshing, I was getting error like below,

I dont know what these means(See figure 5 for overlapping manifold error). And when I have done the meshing, entire probe with 3 holes are missing, in above picture you can see there is void right indicating probe stem, but meshing is done inside the probe, I dont know why. (See Figure6)

Named selection are done like this for probe three internal bores and for those cylindrical steam it will be named as probe_stem.(See Figure7)

I have done face sizing as x/4 i.e 0.000045m, where x is 0.00018m(for screen faces-this was minimum when there was no probe, now these probe wall surface size should be even more lower than that). 

For body sizing, I used below strategy, where x is element size of screen faces which is 0.00018m.(See Figure 8)

My doubts are

  1. In design modular, even though I was able to boolean and subtract fluid domain, void was clearly there for cylindrical steam and those holes are visible too, but in meshing, why that part was missing. What is the problem, what is meant by the error- overlapping manifold at (x,y,z) location, is there any problem with probe-stem junction that you are observing??
  2. I used first layer height of 6e-06 for probeouter and inner walll with 10 layers, and first layer height of 8e-06 ,15 layers for bigger cylindrical stem. Why I got warning message of - stair stepping in 28 locations, whats wrong here with sizes?
  3. I was able to create mesh with cell count of 40 million with decent quality despite these issues- I want to reduce the cell count, this is very high, I cant afford this much computational cost at this point of time, what stratgey or element size I have to change provided this probe modelling issue is resolved before that.

Sorry for posting a larger message, but I hope I have provided all information you want. Thanks in advance.


r/CFD • • 5d ago

Comparative CFD study for multiple designs

11 Upvotes

I am an aerodynamics engineer at a drone manufacturing startup. I handle all aerodynamics and CFD related work.

As design is on a time constraint I sometimes run multiple CFD sims for comparison between designs.

I think that for each design I must run CFD sims in an angle of attack range (from -3 to10) for all and then compare. But here I only run one sim each at the supposed operating angle of attack (6 deg) and compare that points data.

The designs are not minor changes and but major viz. changing the entire wing and canard config. But the team lead only cares about the performance at that point.

They 3D print the design and then send it for testing.

For stability we either perform no study or a XFLR5 study with no motor propeller interaction. The CFD sims are also without propeller MRF.

Is this how things happen?

I would like advice and thoughts of experienced people in the field. This is my first job after college. I am confused as the design pipeline and whether my position is even relevent.

Until now, I have helped come up with the now running config, power scaling, cg positioning, drag reduction, and airfoils for the drone.


r/CFD • • 6d ago

CFD can be sexy

78 Upvotes

Results of two year of thesis work on a coupling between FEM (for the curvature model) and the Lattice Boltzmann Method.

It's not perfect yet, but I can't stop watching it.


r/CFD • • 5d ago

Airbox Simulation

Post image
7 Upvotes

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!


r/CFD • • 6d ago

Reshock Richtmyer–Meshkov instability

155 Upvotes

Simulate Reshock Richtmyer–Meshkov instability with Lattice Boltzmann Method


r/CFD • • 6d ago

Any FlightStream or CFD gods here? My blended-wing-body aircraft keeps breaking the solver and I'm losing my mind

Post image
17 Upvotes

Hey r/CFD,

Aerospace engineering senior here, working on a blended-wing-body (BWB) aircraft for our senior design project.

I'm responsible for the aerodynamics, and I've been fighting FlightStream 26.1 for days trying to get a reliable solution.

At this point, I'm genuinely losing my mind and could use some divine intervention from the CFD or FlightStream gods.

The aircraft:

  • Blended-wing-body with a lift-generating centerbody
  • Swept wings (~40°), winglets, horizontal and vertical stabilizers
  • NASA SC(2)-0712 airfoil
  • Surface mesh generated using FlightStream's native TFI meshing tool
  • ~131k solver panels for the full aircraft, reduced to ~66k using mirror symmetry
  • Test condition: Mach 0.20, AoA = 0°

The problem:

The solver either diverges into another dimension or actually converges and then decides to crash anyway.

I've tried multiple configurations:

Run 1: Full aircraft with Standard Kutta trailing edges. Initially looked promising, then the residuals started increasing and induced drag went completely insane. We're talking (C_{Di}) values in the thousands.

Run 2: Switched to a symmetric half-model, applied Relaxed Kutta to the centerbody, and modified wake termination nodes. Somehow managed to reach the convergence threshold of 1E-5!

Then FlightStream hit me with:

Degenerate surface vorticity evaluated!

Possible coordinates on mesh: 36.071, 0.316, 1.686

Run 3: Changed the separation models. Diverged around iteration 17.

Run 4: Modified the trailing edges and wake shedding again. Apparently made everything worse because it started diverging around iteration 12.

I've also experimented with viscous coupling, Airfoil separation, Vortex separation, Valarezo, and different wake configurations.

Nothing has worked consistently.

NOW, HERE'S WHAT I REALLY NEED HELP WITH:

I've attached a screenshot of my current trailing-edge setup.

The magenta lines are the selected centerbody trailing edges, and the red lines are the other trailing-edge assignments.

The centerbody isn't a conventional cylindrical fuselage. It's a lifting surface that blends into the outer wings, which makes the trailing-edge setup confusing.

FlightStream gives me Standard Kutta, Relaxed Kutta, Exhaust Outflow, and Vortex Shedding.

My questions for the CFD gods:

  1. Should the centerbody trailing edges use Standard Kutta, Relaxed Kutta, or a combination of both?
  2. At the centerbody-to-wing transition, should the trailing edge remain continuous so the wake sheds across the entire lifting surface? Or should I treat the centerbody and wing separately?
  3. Where exactly should wake termination nodes go? At the centerbody-wing junction? At the horizontal-tail and vertical-tail intersections? Or only where a trailing edge terminates against another surface?
  4. Could an incorrect trailing-edge/wake setup cause the solver to diverge this badly, even if the mesh initializes successfully?
  5. Has anyone encountered the "Degenerate surface vorticity evaluated" error before? Is it usually a mesh topology problem, a Kutta condition issue, or something else?

I recently came across Enriquez and Ahuja's AIAA SciTech 2026 paper on FlightStream stability derivatives for the NASA CRM. They obtained impressive results with structured meshes, Relaxed Kutta conditions, and wake termination nodes.

Meanwhile, I'm just trying to get my aircraft to survive 500 iterations without exploding.

I've got the .fsm files, solver logs, VTK exports, and plenty of screenshots if anyone wants to investigate.

I'm not even asking for perfect aerodynamic accuracy at this point. I just want a physically reasonable baseline so I can move on to lift/drag polars and stability derivatives.

If any FlightStream developer, CFD wizard, or surface-vorticity panel-method god happens to see this, please save my senior design project.

Any advice would be massively appreciated. Thanks, everyone!


r/CFD • • 6d ago

CFD fins

5 Upvotes

Hi everyone!
I’m currently working on a research project involving passive cooling of photovoltaic panels using aluminum fins. I’ve spent the past few months running simulations in ANSYS Fluent, testing different fin geometries to see how they affect the panel’s operating temperature.
Unfortunately, we’re running out of time, and we have less than a week to finalize the design and get the fins manufactured.
At this point, I’m considering taking a reverse-engineering approach by using an existing fin design that has already been experimentally validated or shown to perform well in previous research, while still trying to incorporate some aspects of the geometries I’ve been studying.
The main reason I don’t want to manufacture any of my simulated designs directly is that I’m not fully confident in the reliability of my results. I didn’t have enough time to complete a proper mesh independence study or thoroughly evaluate the computational domain (enclosure), so I don’t think it would be appropriate to treat my results as fully validated.
Another major issue is the difference in scale. All my simulations were performed on a 500 × 500 mm photovoltaic panel, but the actual setup consists of three panels, each approximately 2 m tall and 1 m wide.
This makes things considerably more complicated because I’m not sure how to properly scale or distribute the fins across such a large surface, even if I were to use the best-performing geometry from my simulations.
For reference, the panel and base thickness in my model was approximately 2.225 mm, while the fins extended about 120 mm. However, I’m now questioning whether those dimensions are reasonable for the actual panels. Depending on how I arrange and scale the fins, they seem either excessively large or too small to provide meaningful cooling.
I’m honestly struggling to figure out the most reasonable dimensions, spacing, number of fins, and overall configuration for manufacturing.
I’d really appreciate some advice on the following:

  1. Would you recommend adapting a previously validated fin geometry rather than using one of my own CFD designs, given the limited time and lack of complete numerical validation?
  2. How would you approach determining the fin height, thickness, spacing, and number of fins for a 2 × 1 m photovoltaic panel?
  3. Is it reasonable to scale a fin configuration originally designed for a 500 × 500 mm panel, or would the geometry need to be redesigned entirely?
  4. Are there any papers, experimental studies, or existing designs you would recommend using as a reference for manufacturing?
  5. How could I properly justify this design decision in an academic report or research paper, especially considering that the final manufactured geometry might differ from the configurations I originally simulated?

I understand that ideally I should complete the numerical validation and perform additional simulations before manufacturing anything, but unfortunately, our deadline doesn’t allow for that anymore.
I’m trying to make the most technically reasonable decision possible with the time and resources we have left, without making claims that my simulations can’t fully support.
Any suggestions, references, or practical experience would be greatly appreciated.
Thank you so much for your time!


r/CFD • • 7d ago

Is GPU server room cooling and air flow optimization a good CFD project on Ansys?

Post image
106 Upvotes

My Ansys fluent instructor wants us to do a cfd project on Ansys fluent, I want to choose something very interesting and at the same time something attractive for companies to see on my LinkedIn.

If you don't think this is a good idea, please recommend other project ideas.

And btw my laptop has a Nvidia 2050 4gb vram, ryzen 5 7000 series, 16gb ram (in case if you're wondering what my laptop can handle)


r/CFD • • 6d ago

ANSYS + Claude code experience?

7 Upvotes

Hello everyone.

I am working in a CFD project with ANSYS Fluent (more specifically, the battery model) and just recemtly decided to give Claude Code an oportunity. For now, I have only used it to verify that the model is correctly set up and gives coherent responses, based in previous iterations of the model.

For now, itt seems to be working properly (results are in line, and tries to debug and solve issues on the fly). My work method has been opening the Claude app in the computer, giving it folders to work and reorganize, and one of the full projects as a starting point. It has made new folders with geometry model, mesh, results, UDF, etc... But it doesnt work with the integrated project approach as workbench.

For the people that has experience with this approach, do you find it efficient? Is there any way of making it work while workbench is open? Right now, everything is working in the background, but i cant see fluent ACTUALLY opening in my computer, so i worry that it is not actually doing the work.

For the people that works in ANSYS and still havent tried IA. Do you have any task you would like the IA to help you with? Any other questions?

I would like this ñost, if possible, to be a place in which this kind of begginer ANSYS or AI (OR BOTH) questions can be openly discussed.

I apologize first for my english, as it is not my mother tongue, and if i missed any comunity guideline, which i will solve ASAP.

Cheers, and thank you everyone!


r/CFD • • 7d ago

IBM for de Laval nozzle on cartesian grid using DVM in BGK-model of Boltzmann equation

5 Upvotes

I recently posted here regarding the application of the IBM (Immersed Boundary Method) to a nozzle. I have since refined the methodology and increased the grid resolution. At a Knudsen number of 10, supersonic flow is achieved at the throat (critical section), and the supersonic region subsequently extends toward the nozzle exit. Is there a theoretical basis for this phenomenon in rarefied gas, or is this an error?

Additionally, I am concerned by the fact that, over time, the density along the wall within the convergent section (confuser) increases.