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

Trouble adding a turbulence model in DPMFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 17, 2023, 15:58
Default Trouble adding a turbulence model in DPMFoam
  #1
New Member
 
Ignacio Bartol
Join Date: Jun 2022
Posts: 2
Rep Power: 0
_ignacio is on a distinguished road
Good evening/afternoon,

Hi! This is my first post here, but I spent a lot of time reading this forum. First of all, thank you all for the help/advice in all these helpful posts. Now is my turn to throw the dice and get some personalized help if possible.

I am trying to add a new turbulence model to the DPMFoam solver. Specifically, I am trying to add the transitional k-omega SST LM model. To give some context:
  • Using OpenFOAM v2112 in a cluster (so no writing permissions in $FOAM_APPBIN)
  • Linux version Red Hat Enterprise Linux Server v7.9
  • compiling with gcc (Spack GCC) 10.3.0

The steps that I am following are the following:
Code:
$ mkdir ~/OpenFOAM/DPMFoamLM #Where my customized solver will be
$ cp -r /$FOAM_SOLVERS/lagrangian/DPMFoam/* ~/OpenFOAM/DPMFoamLM/ #Copying the solver to my custom solvers
$ export FOAM_USER_APPBIN=~/OpenFOAM #Pointing the variable to where I want my binaries from the solver
$ cd ~/OpenFOAM/DPMFoamLM
$ mv DPMFoam.C DPMFoamLM.C
After this I am modifying the files as following:
Code:
more /Make/files
DPMFoamLM.C

EXE = $(FOAM_USER_APPBIN)/DPMFoamLM
Then in the file DPMTurbulenceModels/DPMTurbulenceModels.C I am adding:
#include "kOmegaSSTLM.H"
makeRASModel(kOmegaSSTLM);

After these steps I do:
Code:
$ wclean
$ wmake libso
After that I got the following error:
Code:
/bin/ld: cannot open output file /storage/home/hcoda1/7/ibartol3/OpenFOAM/DPMFoamLM: Is a directory
collect2: error: ld returned 1 exit status
make: *** [/storage/home/hcoda1/7/ibartol3/OpenFOAM/DPMFoamLM] Error 1
What is curious is that when I modify icoFoam for example to add the diffusion of a scalar field it works well using a very similar workflow (just modifying what needs to be modified of course).

I also tried to do this locally in my local OpenFOAM compilation but compiling straight into $FOAM_APPBIN and it works...

Any help would be highly appreciated! And let me know if you would need further information, I am attaching the full log file just in case you want to read it.

Best,
Ignacio
Attached Files
File Type: txt log.txt (7.7 KB, 2 views)
_ignacio is offline   Reply With Quote

Reply

Tags
compilation error, custom solver, dpmfoam


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
Turbulence model activation Scaty Main CFD Forum 8 October 26, 2021 18:33
Adding graviational acc. to turbulence model fertinaz OpenFOAM Programming & Development 6 December 12, 2020 00:04
Adding compiled turbulence model to the library - OpenFOAM 5.0 netto005 OpenFOAM Programming & Development 0 April 18, 2018 10:53
Question about adaptive timestepping Guille1811 CFX 25 November 12, 2017 17:38
Wrong calculation of nut in the kOmegaSST turbulence model FelixL OpenFOAM Bugs 27 March 27, 2012 09:02


All times are GMT -4. The time now is 01:58.