r/OpenFOAM • • 11h ago

Does rhopimplefoam neglect viscous work in the energy equation?

2 Upvotes

I'm currently running axial compressor rotor simulations using rhoPimpleFoam in OpenFOAM v2512 with MRF and k-omega SST. I've consistently noticed that the work calculated from total blade torque is approximately 1.5% higher than the work calculated from total temperature rise, regardless of mesh refinement or operating point. Interestingly, when I exclude the viscous contribution from the reported torque and use only the pressure torque, the discrepancy drops to around 0.1%. After looking through EEqn.H, I noticed that there is an explicit MRF pressure-work term, but seemingly no viscous stress-work divergence term. My theory is that the momentum equation accounts for viscous forces, but the energy equation neglects their associated work, resulting in a slight underprediction of total temperature rise. Has anyone encountered this before, or am I misunderstanding how rhoPimpleFoam handles viscous work? Would adding a viscous stress-work divergence term to EEqn.H be an appropriate solution?


r/OpenFOAM • • 23h ago

Hello im trying to install open foam but im stuck on this step

0 Upvotes