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

DESHybrid with DPMFoam / DPMDyMFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 14, 2020, 20:49
Default DESHybrid with DPMFoam / DPMDyMFoam
  #1
Member
 
Jairo A. Gutiérrez S
Join Date: Nov 2014
Posts: 57
Rep Power: 11
jairoandres is on a distinguished road
Dear all

I have been using the DESHybrid scheme for a long time without any issues (PimpleFoam, PimpleDyMFoam, sprayFoam). I am moving now to use DPMFoam family of solvers and I have an issue with the scheme:

"--> FOAM FATAL ERROR:
Scheme requires a turbulence model to be present. Unable to retrieve the turbulence model from the mesh database"

The DESHybrid reads like this for U.air:

default none;
div(alphaPhi.air,U.air) Gauss DEShybrid
linear // scheme 1
linearUpwind grad(U.air) // scheme 2
delta.air // LES delta name OF 1912
0.61 // DES coefficient, typically = 0.61
12 // Reference velocity scale
0.05 // Reference length scale
0 // Minimum sigma limit (0-1)
1 // Maximum sigma limit (0-1)
1e-3; // Limiter of B function, typically 1e-03


"delta.air" is defined (from OpenFOAM 1906) as otherwise, the hybrid scheme would not find the delta.air field.

I have also modified the DPMTurbulenceModels.C file and recompiled to include the hybrid LES/RANS models as they are not available for the DPMFoam based solvers, i.e:

#include "kOmegaSSTDDES.H"
makeLESModel(kOmegaSSTDDES);


I am looking at the DESHybrid.H library to see the possible localization of the error, but I am not having luck with this.

I tried modifying the DEShybrid, to let it know the actual names of the fields, i.e:
// **** MODIFICATION ********
// tmp<volTensorField> gradU(fvc::grad(U)); original
tmp<volTensorField> gradU(fvc::grad(U.air)); // DPMFoam

but then an error is produced in the compilation:
error: 'const volVectorField' has no member named 'air'
tmp<volTensorField> gradU(fvc::grad(U.air)); // DPMFoam



Please let me know if you have any ideas regarding how to fix this error and modify the DESHybrid scheme in order to be able of using hybrid turbulence models in DPMFoam and other similar solvers. I am almost positive the error is produced for adding the .air tag to the fields and somewhere the DESHybrid scheme is not reading well this information. The DESHybrid.H file can be found here:

https://www.openfoam.com/documentati...8H_source.html

Thank you a lot.
jairoandres is offline   Reply With Quote

Old   February 15, 2020, 03:13
Default
  #2
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
I would create a feature request ticket in GitLab (not GitHub) if that solver should work with DESHbrid scheme.
HPE is offline   Reply With Quote

Old   February 28, 2020, 18:15
Default
  #3
Member
 
Jairo A. Gutiérrez S
Join Date: Nov 2014
Posts: 57
Rep Power: 11
jairoandres is on a distinguished road
Thank you. I will do that as I was unable of modify the hybrid scheme to work. Meanwhile I am working with the LUST scheme, which in theory should produce acceptable results in LES zones.

Last edited by jairoandres; March 6, 2020 at 16:51.
jairoandres is offline   Reply With Quote

Reply

Tags
des, deshybrid, dpmfoam, hybrid scheme, mppicfoam


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
Adding heat generation and transfer to DPMFoam inc. buoyancy of fluid dussa OpenFOAM Programming & Development 4 July 8, 2022 12:35
Issue with pressure boundary and gravity in DPMFoam eric OpenFOAM Running, Solving & CFD 6 May 8, 2019 08:28
particle time-step in DPMFoam Shuai_W OpenFOAM Running, Solving & CFD 11 May 24, 2018 11:49
DPMFoam - Serious Error --particle-laden flow in simple geometric config benz25 OpenFOAM Running, Solving & CFD 27 December 19, 2017 20:47
How to add Dynamic Mesh to DPMFoam. (e.g DPMDyMFoam) CFDapplication OpenFOAM Programming & Development 0 May 9, 2016 02:33


All times are GMT -4. The time now is 09:15.