CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[Other] sedFoam: two-phase flow sediment transport model

Register Blogs Community New Posts Updated Threads Search

Like Tree20Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 29, 2021, 09:10
Default error while installing sedfoam
  #41
New Member
 
Sourav Hossain
Join Date: Mar 2019
Posts: 25
Rep Power: 7
sourav8016 is on a distinguished road
Dear Sir,

I have been trying to install sedfoam. I am using openfoam6 in ubuntu 16.04. While running ./Allwmake command, I get the following errors

Foam::sedIncompressibleTurbulenceModel<TransportMo del>:Primef() const’:
../TurbulenceModels/turbulenceModels/lnInclude/sedIncompressibleTurbulenceModel.C:128:12: error: ‘New’ is not a member of ‘Foam::tmp<Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> >’
return tmp<surfaceScalarField>::New
^
/home/sourav/OpenFOAM/OpenFOAM-6/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt64Opt/sedFoam_MULES.o' failed
make: *** [Make/linux64GccDPInt64Opt/sedFoam_MULES.o] Error 1

Please help me out. Thanks in advance.
sourav8016 is offline   Reply With Quote

Old   April 29, 2021, 09:14
Default
  #42
New Member
 
Sourav Hossain
Join Date: Mar 2019
Posts: 25
Rep Power: 7
sourav8016 is on a distinguished road
Dear Sir,

I have been trying to install sedfoam. I am using openfoam6 in ubuntu 16.04. While running ./Allwmake command, I get the following errors

Foam::sedIncompressibleTurbulenceModel<TransportMo del>:Primef() const’:
../TurbulenceModels/turbulenceModels/lnInclude/sedIncompressibleTurbulenceModel.C:128:12: error: ‘New’ is not a member of ‘Foam::tmp<Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> >’
return tmp<surfaceScalarField>::New
^
/home/sourav/OpenFOAM/OpenFOAM-6/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt64Opt/sedFoam_MULES.o' failed
make: *** [Make/linux64GccDPInt64Opt/sedFoam_MULES.o] Error 1

Please help me out. Thanks in advance.
sourav8016 is offline   Reply With Quote

Old   April 29, 2021, 09:22
Default
  #43
Member
 
cyss38's Avatar
 
Cyrille Bonamy
Join Date: Mar 2015
Location: Grenoble, France
Posts: 86
Rep Power: 11
cyss38 is on a distinguished road
Sorry, we are now only supporting the versions of OpenFoam.com.

I have to update the readme and the doc to clarify this point


Cyrille
sourav8016 likes this.
cyss38 is offline   Reply With Quote

Old   April 29, 2021, 09:39
Default
  #44
New Member
 
Sourav Hossain
Join Date: Mar 2019
Posts: 25
Rep Power: 7
sourav8016 is on a distinguished road
Quote:
Originally Posted by cyss38 View Post
Sorry, we are now only supporting the versions of OpenFoam.com.

I have to update the readme and the doc to clarify this point


Cyrille
Is sedfoam compatible with OpenFOAM-v2012 ?
sourav8016 is offline   Reply With Quote

Old   April 29, 2021, 10:18
Default
  #45
Member
 
cyss38's Avatar
 
Cyrille Bonamy
Join Date: Mar 2015
Location: Grenoble, France
Posts: 86
Rep Power: 11
cyss38 is on a distinguished road
Quote:
Originally Posted by sourav8016 View Post
Is sedfoam compatible with OpenFOAM-v2012 ?
yes, sedfoam is compatible with OpenFOAM-v2012
sourav8016 likes this.
cyss38 is offline   Reply With Quote

Old   May 23, 2021, 14:04
Question compile error
  #46
Senior Member
 
kimy
Join Date: Mar 2019
Location: https://t.me/pump_upp
Posts: 164
Rep Power: 7
qi.yang@polimi.it is on a distinguished road
Send a message via ICQ to qi.yang@polimi.it Send a message via AIM to qi.yang@polimi.it Send a message via Yahoo to qi.yang@polimi.it
Quote:
Originally Posted by julienC View Post
Dear all,

The third release of sedFoam, a two-phase flow model for sediment transport applications, is available on github:
https://github.com/SedFoam/sedfoam

and an open-access article describing the model capabilities is available here:
https://www.geosci-model-dev.net/10/...-4367-2017.pdf

A short introduction and the description of the tutorials can be found here:
http://servforge.legi.grenoble-inp.fr/pub/soft-sedfoam/

This thread is to inform the community about the recent evolutions of the code as well as to gather feedbacks, questions and comments from the community. Don't hesitate!

All the best,

Julien Chauchat





Dear Julien,


Thanks for your updating. But I always met a problem when I was compiling the solver. Could you please give me some starting tutorials?
qi.yang@polimi.it is offline   Reply With Quote

Old   May 25, 2021, 03:45
Default
  #47
Member
 
cyss38's Avatar
 
Cyrille Bonamy
Join Date: Mar 2015
Location: Grenoble, France
Posts: 86
Rep Power: 11
cyss38 is on a distinguished road
Which version of Openfoam do you use?
As said before, we now support openfoam.com (and not openfoam.org)...
cyss38 is offline   Reply With Quote

Old   May 25, 2021, 04:17
Exclamation
  #48
Senior Member
 
kimy
Join Date: Mar 2019
Location: https://t.me/pump_upp
Posts: 164
Rep Power: 7
qi.yang@polimi.it is on a distinguished road
Send a message via ICQ to qi.yang@polimi.it Send a message via AIM to qi.yang@polimi.it Send a message via Yahoo to qi.yang@polimi.it
Quote:
Originally Posted by cyss38 View Post
Which version of Openfoam do you use?
As said before, we now support openfoam.com (and not openfoam.org)...
Hi Thanks for your reply. In the end, I compiled the solver successfully.

Last edited by qi.yang@polimi.it; June 1, 2021 at 10:23.
qi.yang@polimi.it is offline   Reply With Quote

Old   June 1, 2021, 10:22
Exclamation problem of setting fileds
  #49
Senior Member
 
kimy
Join Date: Mar 2019
Location: https://t.me/pump_upp
Posts: 164
Rep Power: 7
qi.yang@polimi.it is on a distinguished road
Send a message via ICQ to qi.yang@polimi.it Send a message via AIM to qi.yang@polimi.it Send a message via Yahoo to qi.yang@polimi.it
Dear all,

Please help me see the issue of leading wrong fields set (refer to this threadthe inlet proile is not numbers while using funkySetFieldsDict). Thanks.
qi.yang@polimi.it is offline   Reply With Quote

Old   June 9, 2021, 07:36
Default
  #50
Senior Member
 
kimy
Join Date: Mar 2019
Location: https://t.me/pump_upp
Posts: 164
Rep Power: 7
qi.yang@polimi.it is on a distinguished road
Send a message via ICQ to qi.yang@polimi.it Send a message via AIM to qi.yang@polimi.it Send a message via Yahoo to qi.yang@polimi.it
already solved.

Last edited by qi.yang@polimi.it; June 25, 2021 at 05:34.
qi.yang@polimi.it is offline   Reply With Quote

Old   June 25, 2021, 05:33
Question How to post-processing the morphonogical profile, like scour hole in paraview?
  #51
Senior Member
 
kimy
Join Date: Mar 2019
Location: https://t.me/pump_upp
Posts: 164
Rep Power: 7
qi.yang@polimi.it is on a distinguished road
Send a message via ICQ to qi.yang@polimi.it Send a message via AIM to qi.yang@polimi.it Send a message via Yahoo to qi.yang@polimi.it
Dear all,

"After I finished the calculation, should I use another tool to plot the scour characteristics, instead of paraview? Now I can only plot the distribution of solid concentration to roughly see the scouring process. Do you have any idea? Thanks a lot." solved

Last edited by qi.yang@polimi.it; July 8, 2021 at 06:10.
qi.yang@polimi.it is offline   Reply With Quote

Old   August 19, 2021, 05:04
Default
  #52
Member
 
cyss38's Avatar
 
Cyrille Bonamy
Join Date: Mar 2015
Location: Grenoble, France
Posts: 86
Rep Power: 11
cyss38 is on a distinguished road
Quote:
Originally Posted by qi.yang@polimi.it View Post
Dear all,

"After I finished the calculation, should I use another tool to plot the scour characteristics, instead of paraview? Now I can only plot the distribution of solid concentration to roughly see the scouring process. Do you have any idea? Thanks a lot." solved
Sorry for the response time...
Yes You can use Python to postprocess and display your results.

In the Tutorials/Py folder, there are some examples that are explained in the sedfoam documentation https://sedfoam.github.io.

Note that Sedfoam has evolved a lot in recent months (thanks to the developers of OpenFoam.com for their help and advice)
cyss38 is offline   Reply With Quote

Old   August 19, 2021, 06:13
Default
  #53
Senior Member
 
kimy
Join Date: Mar 2019
Location: https://t.me/pump_upp
Posts: 164
Rep Power: 7
qi.yang@polimi.it is on a distinguished road
Send a message via ICQ to qi.yang@polimi.it Send a message via AIM to qi.yang@polimi.it Send a message via Yahoo to qi.yang@polimi.it
Quote:
Originally Posted by cyss38 View Post
Sorry for the response time...
Yes You can use Python to postprocess and display your results.

In the Tutorials/Py folder, there are some examples that are explained in the sedfoam documentation https://sedfoam.github.io.

Note that Sedfoam has evolved a lot in recent months (thanks to the developers of OpenFoam.com for their help and advice)
Thanks a lot. I found I could deal with it via paraview directly.
I have another question that always makes me confused that the flow velocity in the 3DScour tutorial case is not specified since cyclic BC was used in the inlet and outlet in the 1D case. Thus, if I require exploring the effect of different flow velocities, how can it be achieved?
qi.yang@polimi.it is offline   Reply With Quote

Old   August 19, 2021, 07:17
Smile
  #54
Member
 
cyss38's Avatar
 
Cyrille Bonamy
Join Date: Mar 2015
Location: Grenoble, France
Posts: 86
Rep Power: 11
cyss38 is on a distinguished road
Quote:
Originally Posted by qi.yang@polimi.it View Post
I have another question that always makes me confused that the flow velocity in the 3DScour tutorial case is not specified since cyclic BC was used in the inlet and outlet in the 1D case. Thus, if I require exploring the effect of different flow velocities, how can it be achieved?
As inlet boundary condition, the velocity of both phases, the sediment concentration, the TKE and the TKE dissipation are set based on one-dimensional simulation results using funkySetFields.


The associated one-dimensional case can be found in 1D subdirectory and the fluidfoam python package is used in order to generate the 1d_profil files which are necessary for funkySetFields (see Allrun.pre and Allrun).

So, if you want to explore the effect of different flow velocities you have to change the velocity in the 1D case. In this 1D case, the flow is driven by a pressure gradient, that you can change via the variable gradPMean of the constant/forceProperties file (of the 1D case) : https://github.com/SedFoam/sedfoam/b...Properties#L19
cyss38 is offline   Reply With Quote

Old   August 19, 2021, 07:43
Default
  #55
Senior Member
 
kimy
Join Date: Mar 2019
Location: https://t.me/pump_upp
Posts: 164
Rep Power: 7
qi.yang@polimi.it is on a distinguished road
Send a message via ICQ to qi.yang@polimi.it Send a message via AIM to qi.yang@polimi.it Send a message via Yahoo to qi.yang@polimi.it
Quote:
Originally Posted by cyss38 View Post
As inlet boundary condition, the velocity of both phases, the sediment concentration, the TKE and the TKE dissipation are set based on one-dimensional simulation results using funkySetFields.


The associated one-dimensional case can be found in 1D subdirectory and the fluidfoam python package is used in order to generate the 1d_profil files which are necessary for funkySetFields (see Allrun.pre and Allrun).

So, if you want to explore the effect of different flow velocities you have to change the velocity in the 1D case. In this 1D case, the flow is driven by a pressure gradient, that you can change via the variable gradPMean of the constant/forceProperties file (of the 1D case) : https://github.com/SedFoam/sedfoam/b...Properties#L19
I got the idea. Thanks. So that's to say, I can roughly calculate the inlet velocity by the expression (1/2*rho*V^2=P) if I specified a mean pressure in the dictionary. Is it correct?
qi.yang@polimi.it is offline   Reply With Quote

Old   August 19, 2021, 08:57
Default
  #56
New Member
 
Antoine MATHIEU
Join Date: Jan 2018
Posts: 5
Rep Power: 8
mathiant is on a distinguished road
Quote:
Originally Posted by qi.yang@polimi.it View Post
I got the idea. Thanks. So that's to say, I can roughly calculate the inlet velocity by the expression (1/2*rho*V^2=P) if I specified a mean pressure in the dictionary. Is it correct?

You can not directly target the mean velocity in a boundary layer by changing the pressure gradient gradPMEAN in constant/forceProperties.

Wath you can do is to change gradPMEAN to match a given bottom friction velocity "utau" following: gradPMEAN = utau^2/h

Regards,


Antoine
mathiant is offline   Reply With Quote

Old   August 23, 2021, 06:12
Default
  #57
Senior Member
 
kimy
Join Date: Mar 2019
Location: https://t.me/pump_upp
Posts: 164
Rep Power: 7
qi.yang@polimi.it is on a distinguished road
Send a message via ICQ to qi.yang@polimi.it Send a message via AIM to qi.yang@polimi.it Send a message via Yahoo to qi.yang@polimi.it
Quote:
Originally Posted by mathiant View Post
You can not directly target the mean velocity in a boundary layer by changing the pressure gradient gradPMEAN in constant/forceProperties.

Wath you can do is to change gradPMEAN to match a given bottom friction velocity "utau" following: gradPMEAN = utau^2/h

Regards,


Antoine

Thank you, Antoine. I must know the relationship regarding mean velocity. Where can I find the relevant literature or equations?
qi.yang@polimi.it is offline   Reply With Quote

Old   September 4, 2021, 01:53
Default
  #58
New Member
 
Masoumeh
Join Date: Oct 2019
Posts: 21
Rep Power: 7
ms.hashempour is on a distinguished road
Dear friends

I can not resume my running with "mpirun -np 4 sedfoam -parallel"
while I change my controldict for continuing based on the latest time of run.
the error is:
"mpirun was unable to find the specified executable file, and therefore
did not launch the job. This error was first reported for process
rank 0; it may have occurred for other processes as well."


hope to guide me
ms.hashempour is offline   Reply With Quote

Old   September 4, 2021, 04:33
Default
  #59
Member
 
cyss38's Avatar
 
Cyrille Bonamy
Join Date: Mar 2015
Location: Grenoble, France
Posts: 86
Rep Power: 11
cyss38 is on a distinguished road
Quote:
Originally Posted by ms.hashempour View Post
Dear friends

I can not resume my running with "mpirun -np 4 sedfoam -parallel"
while I change my controldict for continuing based on the latest time of run.
the error is:
"mpirun was unable to find the specified executable file, and therefore
did not launch the job. This error was first reported for process
rank 0; it may have occurred for other processes as well."


hope to guide me
The name of the binary is sedFoam_rbgh and not sedfoam.
So, just type :
"mpirun -np 4 sedFoam_rbgh -parallel"
ms.hashempour likes this.
cyss38 is offline   Reply With Quote

Old   September 9, 2021, 04:23
Default
  #60
Senior Member
 
kimy
Join Date: Mar 2019
Location: https://t.me/pump_upp
Posts: 164
Rep Power: 7
qi.yang@polimi.it is on a distinguished road
Send a message via ICQ to qi.yang@polimi.it Send a message via AIM to qi.yang@polimi.it Send a message via Yahoo to qi.yang@polimi.it
Hi,

I am simulating a scouring problem in terms of my own structure. However, I always encountered some convergence issues and the results seem crazy. Due to the fact that I adopted ansys workbench to create geometry and mesh, also I specified symmetry BC on two sides of the domain, instead of cyclic used in the tutorial case. I am not sure that boundary condition will result in the wrong solution (see attachment, alpha.a at time 1 s). Alternatively, I tried to change cyclic to symmetry based on the original 3DScour case in the tutorial I also met the same problem but after I adjusted the cell number in the vertical direction, which improved the solution. I get stuck here. Do you have any ideas or comments? Appreciated.
Attached Images
File Type: png mesh.png (52.2 KB, 30 views)
File Type: png alpha.png (50.9 KB, 30 views)
qi.yang@polimi.it is offline   Reply With Quote

Reply


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
Issues on the simulation of high-speed compressible flow within turbomachinery dowlee OpenFOAM Running, Solving & CFD 11 August 6, 2021 07:40
use mixture model to simulate two-phase flow with phase change dxm2008 Fluent Multiphase 5 September 7, 2016 15:15
Free Surface Flow with Sediment Transport M. Riffai CFX 3 September 5, 2013 10:45
How do model two phase granular flow in Porous media? bahman FLUENT 1 December 6, 2012 05:39
Transitional Flow Shear Stress Transport (SST) k-omega Turbulence Model josechen FLUENT 0 July 20, 2011 17:06


All times are GMT -4. The time now is 00:24.