STREAmS-CFD / STREAmS-2

GNU General Public License v3.0
54 stars 16 forks source link

Compilation issue #10

Open OYYO1999 opened 4 days ago

OYYO1999 commented 4 days ago

Hi, I followed the same steps as given in the user guide to compile the code but got this error.

issue1

please give my some tips.

francescosalvadore commented 3 days ago

Hi, which compiler/version are you using? What does makefile.inc contain?

OYYO1999 commented 3 days ago

ohh, thanks for your answer! I am using gfortran and g++ in Ubuntu2206, as follow: g++ gfortran The file makefile.inc in ./STREAmS-2/code/. code_make

OYYO1999 commented 3 days ago

The makefile.inc include as follow: makefile inc

francescosalvadore commented 3 days ago

gfortran 4.7.4 is too old probably. try to update/reinstall it. g++ 11 is ok.

OYYO1999 commented 3 days ago

thanks, I have compiled! But i want ask some questions, as follow:

  1. If I want to add some roughness to the channel surface, how do I manipulate my mesh?
  2. How to add some source terms to the equation?
francescosalvadore commented 2 days ago

To simulate roughness you probably need major development (e.g., immersed boundary).

A simple forcing can be added as a new procedure to be called from rk_sync/rk_async.

OYYO1999 commented 2 days ago

This is a shame, will you update the code further so that it can simulate roughness surfaces? OK, thanks for your answer,

davidem88 commented 2 days ago

At the moment, we are not planning to add roughness in the public repository. For modeled roughness you can look at this thesis https://repository.tudelft.nl/record/uuid:659437ca-4dcf-47ea-beb3-4e3557d9e9bc, where modeled roughness was implemented in streams.

The method used was the one proposed by Busse&Sandham https://doi.org/10.1017/jfm.2012.408

OYYO1999 commented 2 days ago

oh! thanks for your answer and referenece!