CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Help with implementing EARSM in OF v2112

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 18, 2025, 12:47
Default Help with implementing EARSM in OF v2112
  #1
New Member
 
Join Date: Oct 2025
Posts: 1
Rep Power: 0
00Sora is on a distinguished road
Hello everyone!


I’ve been trying to implement the EARSM model (as used in ANSYS) in OpenFOAM. I’m basing my work on the version available here:
https://gitlab.com/ejp/BSL-EARSM
I’ve already made a few modifications so that it works with OpenFOAM v2112. One of the main changes is that I replaced the backwardsCompatibilityFunctions with the standard omegaWallFunction. Since the difference for y+ < 1 is small, I don't think thats the main issue.
However, I’m still struggling to match the verification results. In the attached plot you can see a significant discrepancy between my implementation and the reference. Interestingly, the velocity results for the standard kOmegaSST model are actually closer to the verification than the EARSM implementation I’m trying to reproduce. So could this be a general version-related issue in OpenFOAM?

Another problem is stability: for several simple test cases (e.g., a flat plate) the solver becomes unstable and crashes after just a few iterations.
I’ve posted my full code in the thread. If anyone has ideas about what might be going wrong or has experience with EARSM in OF v2112, I would really appreciate your help!

Thank you!!
Attached Images
File Type: jpg diag_u_v_comparisonkOmegaSST.jpg (67.1 KB, 5 views)
Attached Files
File Type: c BSLEARSM_LowRe94w1cp.C (20.7 KB, 1 views)
File Type: h BSLEARSM_LowRe94w1cp.H (10.0 KB, 0 views)
File Type: zip sqDuct.zip (10.6 KB, 2 views)
00Sora is offline   Reply With Quote

Old   December 1, 2025, 15:28
Default
  #2
Senior Member
 
Klaus
Join Date: Mar 2009
Posts: 304
Rep Power: 23
klausb will become famous soon enough
Start with reasonable defaults for tolerances and convergence like 1e-6 to 1e-8, your values are extremely low. Monitor the residuals and post your observations.
klausb is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OF v2112: problem with twoPhaseEulerFoam & scalarCodedSource user OpenFOAM Programming & Development 5 June 20, 2025 06:23
Adding a Heat Source - OpenFOAM v2112 chtMultiRegionTwoPhaseEulerFoam Magnox OpenFOAM Running, Solving & CFD 0 April 1, 2022 06:59
Defining a Heat Source in OpenFOAM v2112 for chtMultiRegionTwoPhaseulerFoam Magnox OpenFOAM Running, Solving & CFD 0 March 29, 2022 16:33
wall treatment for EARSM model fxzf OpenFOAM Running, Solving & CFD 5 June 3, 2019 09:17
EARSM implementation Biga Main CFD Forum 0 February 1, 2005 14:03


All times are GMT -4. The time now is 13:25.