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

[OLAFLOW] The OLAFOAM Thread

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

Like Tree16Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 29, 2016, 10:57
Default
  #101
New Member
 
Kostas Margaris
Join Date: Feb 2014
Posts: 15
Rep Power: 12
kmargaris is on a distinguished road
Hi Pablo,

What is the purpose of nEdgeMin and nEdgeMax settings. According to the Wiki page they are used in 2D and 3D wave absorption and:

"nEdgeMin and nEdgeMax solve some issues that appear on the corners, selecting a number of paddles that are only capable of taking water out according to the 2D theory"

What sort of problems do they address?

Best regards,
Kostas
kmargaris is offline   Reply With Quote

Old   November 29, 2016, 21:27
Default
  #102
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19
Phicau is on a distinguished road
Hi Kostas,

check the user guide included in the reference materials.

- It solves a situation in which pumping water in very narrow spaces (i.e. acute corner) would make the free surface reach the atmosphere and decrease dt.
- It solves a situation with the 3D absorption code, which measures tangential velocity and uses that as a factor to calculate the incident angle, since the absorption velocity of an edge will be the tangential velocity of the neighbouring boundary.

Dear all,

I detected a bug yesterday evening and decided to postpone the release of the flap wavemaker until that was fixed. It is fixed now and I have uploaded the code into GitHub.

This time I have only produced tutorials for the latest version of OpenFOAM (3-4*) and foam-Extend (3.2).

Unfortunately the version for foam-Extend does not have the proper BCs in some cases (see http://www.cfd-online.com/Forums/ope...ctorfield.html ) and it only runs in serial due to a weird bug, which I think it is not in olaFoam code. I will keep trying to correct that.

Best,

Pablo
Phicau is offline   Reply With Quote

Old   November 29, 2016, 21:46
Default StreamFunction
  #103
Member
 
Join Date: Jul 2010
Posts: 55
Rep Power: 15
ashkan is on a distinguished road
Hi Pablo,

First of all, thank you very much for your interesting olaFoam solver. I have been using it for generating various wave types and was just looking to use the Streamfunction wave theory. I looked into "FourierFenton" directory to generate the coefficients but could not run the Fourier.exe code (I am using Ubuntu 16.04). I also downloaded the package from John Fenton's page but could not compile the code (it seems that process.h file is missing).

I was wondering if you have any working version or any comments on how to generate the coefficients.

Regards
Ashkan
ashkan is offline   Reply With Quote

Old   November 29, 2016, 21:58
Default
  #104
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19
Phicau is on a distinguished road
Hi Ashkan,

you need to run the version provided, because the newer ones provide results in a different way, which is not suitable for what olaFoam accepts.

There is no problem running Fourier.exe in linux, as long as you get wine:

sudo add-apt-repository ppa:wine/wine-builds
sudo apt-get update
sudo apt-get install winehq-devel

wine Fourier.exe

(first time you will need to install some dependencies, just click yes in all the prompts)

Best,

Pablo
Phicau is offline   Reply With Quote

Old   November 30, 2016, 21:10
Default
  #105
Member
 
Join Date: Jul 2010
Posts: 55
Rep Power: 15
ashkan is on a distinguished road
Quote:
Originally Posted by Phicau View Post
Hi Ashkan,

you need to run the version provided, because the newer ones provide results in a different way, which is not suitable for what olaFoam accepts.

There is no problem running Fourier.exe in linux, as long as you get wine:

sudo add-apt-repository ppa:wine/wine-builds
sudo apt-get update
sudo apt-get install winehq-devel

wine Fourier.exe

(first time you will need to install some dependencies, just click yes in all the prompts)

Best,

Pablo

Many thanks Pablo. I installed wine as you suggested and all is working fine now.

Many thanks again
Ashkan
ashkan is offline   Reply With Quote

Old   December 8, 2016, 16:22
Default sudden increment of turbulent kinetic energy "k"
  #106
New Member
 
kasra karimi
Join Date: Jan 2016
Location: Tehran
Posts: 10
Rep Power: 10
kasra karimi is on a distinguished road
Dear all:

I am using OlaFoam to generating waves in a 3-D flume (12*2.2*1m) and my turbulent model is k-omega SST.

i have experienced a problem through running number of cases for different waves, I don't know if I have done something wrong or its a bug or something. i have tried it for different size of mesh but no progress.I have stuck with this problem for a month, please help me

the model works perfectly in 2D model, but the problem is that when it comes to 3D model, after 5-6 wave period "k" would increase suddenly from quantities near 0 to 3000.This would lead to decreasing the time steps to very low and the simulation wont progress more!

In my latest try it happened for some of the cells at the outlet boundary. I have put some snapshots of "alpha" and "k" together in the below picture + the mesh I used:





*here is what I applied to the outlet B.C:
for "k"
Code:
internalField   uniform 1.35e-5;

boundaryField
{

    outlet
    {
        type            zeroGradient;

    }
for "U"
Code:
internalField   uniform (0 0 0);
outlet
    {
        type            waveAbsorption2DVelocity;
        value           uniform (0 0 0);
    }
for "Omega"
Code:
internalField   uniform 136;

boundaryField
{
    outlet
    {
        type            zeroGradient;
    }
kasra karimi is offline   Reply With Quote

Old   December 9, 2016, 04:27
Default
  #107
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19
Phicau is on a distinguished road
Hi Kasra,

I think you might be experiencing that because of a pressure instability, please check whether you obtain abnormal pressures/velocities at that location.

I notice that you mesh is made from triangular prisms, and that the smearing of the VOF function is very significant (probably this is the root of the problem, as VOF should be as sharp as possible). From my practical knowledge, I will advice you against using triangles in the mesh to avoid such problems. Try with a structured mesh.

Best,

Pablo
Phicau is offline   Reply With Quote

Old   December 9, 2016, 18:21
Default
  #108
New Member
 
kasra karimi
Join Date: Jan 2016
Location: Tehran
Posts: 10
Rep Power: 10
kasra karimi is on a distinguished road
Quote:
Originally Posted by Phicau View Post
Hi Kasra,

I think you might be experiencing that because of a pressure instability, please check whether you obtain abnormal pressures/velocities at that location.

I notice that you mesh is made from triangular prisms, and that the smearing of the VOF function is very significant (probably this is the root of the problem, as VOF should be as sharp as possible). From my practical knowledge, I will advice you against using triangles in the mesh to avoid such problems. Try with a structured mesh.

Best,

Pablo
Hi Pablo,

Thanks a lot for your reply, well as you said there are also abnormal pressure near this location, but the velocity seems ok

p_rgh
Code:
     outlet 
    {
        type            fixedFluxPressure;
        value           uniform 0;
    }




and about the mesh, it may seems strange but my wanted result (which is the time-averaged flow pattern) is only correct by using triangular mesh! at first for my 2D model I generated structured mesh with different sizes and via different methods(blockMesh, snappy, SALOME, Gambit), but all of them failed to simulate the correct pattern, but when I used triangular mesh with the same B.C and ..., the result were perfect.

so besides changing the mesh, do you think of any other way that could stabilize the model? would changing the turbulent model to k-Epsilon be helpful?

Best
Kasra
kasra karimi is offline   Reply With Quote

Old   December 12, 2016, 03:19
Default
  #109
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19
Phicau is on a distinguished road
Hi Kasra,

pressure and velocity are coupled, large pressure gradients will induce crazy velocities.

Maybe some things can help there:

- Having smaller cells in a wider vertical region
- Increasing the value of cAlpha to avoid smearing of the free surface

Best,

Pablo
Phicau is offline   Reply With Quote

Old   January 2, 2017, 06:29
Default
  #110
smh
New Member
 
Mahdi Hashemi
Join Date: Aug 2013
Posts: 7
Rep Power: 12
smh is on a distinguished road
Dear Pablo,
Hello

In the waveDict file we introduce the waveTheory and waveType.
I wanted to know if it's possible to use waveTheory.py to include the waveTheory and waveType automatically with the given h,T & H for the desired problem without any change in waveDict file?

Best regards,

Mahdi
abas.rahmani86 likes this.
smh is offline   Reply With Quote

Old   January 6, 2017, 11:49
Default How to cite olaFoam
  #111
Member
 
Join Date: Apr 2015
Posts: 42
Rep Power: 11
HosseinB is on a distinguished road
Hi Pablo,

I am preparing a document and need to cite olaFoam. How can I cite this?

I am also acknowledging your help with my work in the document. I want to know if that's OK with you.

Cheers,
Hossein
HosseinB is offline   Reply With Quote

Old   January 8, 2017, 22:47
Default
  #112
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19
Phicau is on a distinguished road
Dear Mahdi,

at this stage the waveTheory.py script only represents the selected wave conditions. I have not plans to make it generate a waveDict file, as there are lots of other options in the waveDict file that do not intervene in selecting the wave theory.

Dear Hossein,

that is great news, congratulations! Thanks for acknowledging my help.

Since I am still preparing a couple papers to formally introduce olaFoam, please find in this link some information/references on how to cite olafoam at this stage:

https://openfoamwiki.net/index.php/C...ces_and_Citing

Do let me know when the paper is published and I will update the list to include it for other users to know.

Best regards,

Pablo
Phicau is offline   Reply With Quote

Old   January 14, 2017, 10:34
Default
  #113
smh
New Member
 
Mahdi Hashemi
Join Date: Aug 2013
Posts: 7
Rep Power: 12
smh is on a distinguished road
Dear Pablo,
Hello

Thanks for your reply.
Another question.
Totally is it possible to apply the wave absorption BC on oblique faces?
Actually I did this but the outlet face act as wave generation BC.
I look forward to have your valuable comments.

Best regards,

Mahdi
smh is offline   Reply With Quote

Old   January 14, 2017, 12:15
Default wave direction
  #114
New Member
 
Ali
Join Date: Dec 2016
Location: Hong Kong
Posts: 12
Rep Power: 9
abas.rahmani86 is on a distinguished road
Dear Pablo
hello
thank you for olaFoam and your reply
I have a question
I have a problem with insert shapes in domain.
how i can to change direction of wave in waveDict?
Best regards
abas.rahmani86 is offline   Reply With Quote

Old   January 15, 2017, 06:24
Default Tides and waves
  #115
Member
 
Join Date: Nov 2009
Posts: 56
Rep Power: 16
fusij is on a distinguished road
Hi,

I need to simulate a coastal process (e.g. wastewater discharge) where there is need to run the simulation for several hours of simulated time. During this time span there will be considerable change in the tide level. The domain range will be ~10 km. The goal here is simulate a scalar transport in a vector field on a rather large scale. Is it possible with OLAFOAM to create surface waves at the inlet boundary along with changing the tide level at the same time (waves with much lower frequency). That is applying two waves of different frequencies at the same time for the alpha field at the inlet. The change in water level representing the tides, only involves change in alpha not in velocity.

Summary of what I want:
Surface waves (e.g. StokesI, relatively high frequency) affecting alpha and U field
+
Tidal waves only affecting alpha (low frequency)
fusij is offline   Reply With Quote

Old   January 15, 2017, 20:41
Default
  #116
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19
Phicau is on a distinguished road
Hi fusij,

olaFoam can do that. However, you are not going to be able to simulate your conditions with OpenFOAM due to computational cost issues: your domain is too large and the simulation time will be too long for this 3D RANS model.

Best,

Pablo
Phicau is offline   Reply With Quote

Old   January 15, 2017, 21:02
Default
  #117
Member
 
Join Date: Nov 2009
Posts: 56
Rep Power: 16
fusij is on a distinguished road
Thanks for the answer. It really depends on what you are trying to resolve. It all comes down to your cell sizes. This problem is usually solved with rather large cells when investigating the farfield conditions. So you come down to mesh sizes of several mill. cells. Commercial software even solve this problem on a few hundred thousand cells, lowering vertical resolution. Such large cells and timestep are maybe problematic for the surface waves but the tide wave can be resolved accurately.

Sent from my SM-G920F using CFD Online Forum mobile app
fusij is offline   Reply With Quote

Old   February 8, 2017, 10:20
Default
  #118
New Member
 
Ali
Join Date: Dec 2016
Location: Hong Kong
Posts: 12
Rep Power: 9
abas.rahmani86 is on a distinguished road
hi pablo
I have a problem with simulating wave with period less than 3 sec by olafoam
I try to simulate a flume without any structure and get a regular wave in it
but after 30 second i see irregularity in wave.the photo show wave gage at 3,8 and 12 meter from begining of flume(wave maker).I attach source file too.
wave period=1.67 sec
wave height=0.175 m
water depth=0.8 m
I really confuse because i change every parameter for it.
do you meet this ever?
many thanks for your reply Pablo.
abas rahmani
[/IMG]
[/IMG]
[/IMG]
Attached Files
File Type: zip finemesh4.zip (45.2 KB, 13 views)
abas.rahmani86 is offline   Reply With Quote

Old   February 9, 2017, 07:46
Default RASModel vs. laminar
  #119
New Member
 
Kryss
Join Date: Dec 2016
Posts: 9
Rep Power: 9
totalBeginner is on a distinguished road
Hey Pablo!

I've been working with OlaFOAM for a while now and am starting something new. I want to simulate particles in the fluid, that are supposed to be moved my the waves. But to combine olaFoam and a solidParticle-solver, I need to use an RAS turbulence model.

Now my question: Does that even work with olaFoam?

Cheers, Kryss
totalBeginner is offline   Reply With Quote

Old   February 9, 2017, 20:43
Default
  #120
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19
Phicau is on a distinguished road
Hi Abas,

I will take a look at that and report back to you.

Hi Kryss,

Yes, olaFoam can work with RAS and virtually any turbulence model that works with OpenFOAM. Regarding the particles, I did some work years ago. It works, but when moving to 3D scaling is a DISASTER due to the huge number of particles.

Best,

Pablo
Attached Images
File Type: png particles.png (74.3 KB, 58 views)
yuhan1991 and abas.rahmani86 like this.
Phicau is offline   Reply With Quote

Reply

Tags
generation, ihfoam, olafoam, waves

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
Divergence detected in AMG solver: k when udf loaded google9002 Fluent UDF and Scheme Programming 3 November 7, 2019 23:34
udf problem jane Fluent UDF and Scheme Programming 37 February 20, 2018 04:17
UDF velocity profile willroca Fluent UDF and Scheme Programming 2 January 10, 2016 03:13
Error messages atg enGrid 7 August 30, 2013 11:16
Phase locked average in run time panara OpenFOAM 2 February 20, 2008 14:37


All times are GMT -4. The time now is 19:16.