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

[OLAFLOW] The OLAFLOW Thread

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

Like Tree2Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   March 13, 2018, 20:01
Default
  #21
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Singapore
Posts: 433
Rep Power: 12
Phicau is on a distinguished road
Hi Chen,

olaFlow is written and tested to work in parallel, if you experience any differences in the unmodified version, please report it, as it would most probably be a bug. However, I have never experience such.

Probably there are some glitches in your new implementation that might need to be programmed to be parallel-aware.

Best,

Pablo
__________________
Check out my new project: olaFlow --> The olaFlow Support Thread
Phicau is offline   Reply With Quote

Old   April 16, 2018, 08:15
Default
  #22
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Singapore
Posts: 433
Rep Power: 12
Phicau is on a distinguished road
Dear all,

I have just released a library that provides modified versions of k-ε and k-ω SST turbulence models to simulate correctly multiphase systems and mitigate turbulence build-up effect.

You can find all the information in the release post: https://sites.google.com/view/olaflo...ve-simulations

I hope that you find it useful.

Best,

Pablo
__________________
Check out my new project: olaFlow --> The olaFlow Support Thread
Phicau is offline   Reply With Quote

Old   April 16, 2018, 12:28
Default
  #23
lin
Senior Member
 
Hua Zen
Join Date: Mar 2009
Posts: 133
Rep Power: 11
lin is on a distinguished road
Quote:
Originally Posted by Phicau View Post
Dear all,

I have just released a library that provides modified versions of k-ε and k-ω SST turbulence models to simulate correctly multiphase systems and mitigate turbulence build-up effect.

You can find all the information in the release post: https://sites.google.com/view/olaflo...ve-simulations

I hope that you find it useful.

Best,

Pablo
Thanks Phicau for your releasing this contribution. Can you give some explanation how your new implementation of turbulence model mitigate turbulence build-up effect?
lin is offline   Reply With Quote

Old   April 16, 2018, 20:32
Default
  #24
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Singapore
Posts: 433
Rep Power: 12
Phicau is on a distinguished road
Hi Hua Zen,

Check this reference out:

Application of a buoyancy-modified k-ω SST turbulence model to simulate wave run-up around a monopile subjected to regular waves using OpenFOAM
Brecht Devolder, Pieter Rauwoens & Peter Troch
Coastal Engineering (2017), vol. 125, pp. 81–94
https://doi.org/10.1016/j.coastaleng.2017.04.004

Best,

Pablo
__________________
Check out my new project: olaFlow --> The olaFlow Support Thread
Phicau is offline   Reply With Quote

Old   April 17, 2018, 11:17
Default
  #25
lin
Senior Member
 
Hua Zen
Join Date: Mar 2009
Posts: 133
Rep Power: 11
lin is on a distinguished road
Hi Phicau, I've read the paper by Devolder et al. (2017), in which an additional buoyancy term is used to suppress the spurious turbulence generation at the interface. From your blog, two additional turbulence models are implemented(kEpsilonMultiphase, kOmegaSSTMultiphase), what is the difference between these two implementation and that of Devolder et al. (2017)?
lin is offline   Reply With Quote

Old   April 17, 2018, 22:37
Default
  #26
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Singapore
Posts: 433
Rep Power: 12
Phicau is on a distinguished road
Hi Hua Zen,

the problem in OpenFOAM is that incompressible turbulence models are not prepared for multiphase flows. They assume a constant rho, since under the incompressibility assumption, it will go out of the differential operators. In incompressible multiphase flows, the density of each phase is constant, but the density of the system changes throughout the domain depending on the VOF function value in each cell.

kEpsilonMultiphase and kOmegaSSTMultiphase implementations are exactly the same as provided by OpenFOAM, but the density (rho) has been modified so that the one provided by the multiphase solver (e.g. olaFlow) is used.

Best,

Pablo
__________________
Check out my new project: olaFlow --> The olaFlow Support Thread
Phicau is offline   Reply With Quote

Old   April 25, 2018, 04:07
Default
  #27
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Singapore
Posts: 433
Rep Power: 12
Phicau is on a distinguished road
Dear all,

olaFlow is now compatible with OpenFOAM-dev.

I have made some changes in the compilation scripts and added the olaFlow solver. Please note that olaFlow and olaDyMFlow have been merged in the dev version, so olaFlow can handle moving meshes too.

As usual, the latest version is in: https://github.com/phicau/olaFlow

Best,

Pablo
__________________
Check out my new project: olaFlow --> The olaFlow Support Thread
Phicau is offline   Reply With Quote

Old   April 29, 2018, 02:34
Default
  #28
New Member
 
aref shahryari
Join Date: Jul 2017
Posts: 10
Rep Power: 3
Aref.shri is on a distinguished road
Dear Pablo,
Hi
I am wondering if it is possible to change the waveTheory in the wavemakerFlume tutorial (since it doesn't have any waveDicts)? If yes, how?
Aref.shri is offline   Reply With Quote

Old   April 29, 2018, 21:02
Default
  #29
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Singapore
Posts: 433
Rep Power: 12
Phicau is on a distinguished road
Hi Aref,

the waveDict is generated by the runCase script, in which the linear wave motion of the wavemaker (piston and flap) is programmed. Once you have run the case you can edit the waveDict file as you desire, but runCase only provides the linear wave theory transfer functions.

Best,

Pablo
Aref.shri likes this.
__________________
Check out my new project: olaFlow --> The olaFlow Support Thread
Phicau is offline   Reply With Quote

Old   April 30, 2018, 04:39
Default
  #30
New Member
 
aref shahryari
Join Date: Jul 2017
Posts: 10
Rep Power: 3
Aref.shri is on a distinguished road
Hi Pablo,
you mean the waveDict file can be edited while running the case?
thanks for your reply.
Aref.shri is offline   Reply With Quote

Old   April 30, 2018, 04:42
Default
  #31
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Singapore
Posts: 433
Rep Power: 12
Phicau is on a distinguished road
Hi Aref,

no, what I mean is that the waveDict file is generated by the runCase script. Once it has been created you can modify it as you wish and use it in any case. However, the file is only read by olaFlow during the initial time step, therefore, any modifications that you make while the case is running will not have any effects on the simulation that is running.

Best,

Pablo
Aref.shri likes this.
__________________
Check out my new project: olaFlow --> The olaFlow Support Thread
Phicau is offline   Reply With Quote

Old   April 30, 2018, 05:18
Default
  #32
New Member
 
aref shahryari
Join Date: Jul 2017
Posts: 10
Rep Power: 3
Aref.shri is on a distinguished road
thanks again Pablo,
it was really helpful.
Aref.shri is offline   Reply With Quote

Old   May 17, 2018, 05:51
Default Reference olaFlow
  #33
New Member
 
Diogo R.C.B. Neves
Join Date: Aug 2014
Posts: 16
Rep Power: 5
dneves is on a distinguished road
Hi Pablo, how do I properly reference olaFlow?

I enhance your novelties regarding the turbulence models.

Beste Regards,

Diogo
dneves is offline   Reply With Quote

Old   May 17, 2018, 06:38
Default
  #34
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Singapore
Posts: 433
Rep Power: 12
Phicau is on a distinguished road
Hi Diogo,

it might be too hidden in the website:

https://sites.google.com/view/olaflo...del/references

"If you want to reference the model in your publications it should be called olaFlow, and include any of the following references when citing implementation, validation and applications."

We have used the following example in a recent paper, also adding the GitHub address ( https://github.com/phicau/olaFlow ): The CFD model used in this work is olaFlow (Higuera et al., 2013a,b), developed within the OpenFOAM framework.

We wanted to cite the wave generation and absorption capabilities plus the validation (Higuera et al., 2013a,b), but feel free to change the references. For example, if you would like to cite the porous model and applications it would be (Higuera et al., 2014a,b) or my thesis. For the moving-boundary wavemaker (Higuera et al., 2015)... I think you get the idea.

Don't forget to give credit to Devolder et al. papers for that turbulence models!

Best,

Pablo
__________________
Check out my new project: olaFlow --> The olaFlow Support Thread
Phicau is offline   Reply With Quote

Old   May 24, 2018, 09:08
Default
  #35
New Member
 
Vania
Join Date: Dec 2016
Posts: 11
Rep Power: 3
VLima is on a distinguished road
Dear all,

I am new to OF and now testing the wavemakerFlume tutorial case, for a piston wavemaker, with olaFlow.

I was wondering if :

1) it is possible (and how) to generate just only one single wave with the piston wavemaker , and not several continuous equal waves, and how to check the profile of the wave generated at some point along the channel;

2) in the case I am running, I got the error:

--> FOAM FATAL ERROR:
The time series is not long enough.

and was wondering why could this be happening. I just changed the wave height and water depth values.

I would appreciate very much any help you could provide with this.

Thank you.
VLima is offline   Reply With Quote

Old   May 28, 2018, 04:11
Default
  #36
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Singapore
Posts: 433
Rep Power: 12
Phicau is on a distinguished road
Hi Vania,

Yes, it is possible, you just need to edit wavemakerMovement.txt so that the wavemaker moves as you wish: one wave and then keep the position.

You can sample free surface elevation, just check how it is done in the breakwater tutorial.

That error indicates that the time series of movement that you provided is no long enough, your simulation time is longer. Select a shorter simulation time or give a longer time series.

Best,

Pablo
__________________
Check out my new project: olaFlow --> The olaFlow Support Thread
Phicau is offline   Reply With Quote

Old   June 1, 2018, 08:18
Default
  #37
New Member
 
Vania
Join Date: Dec 2016
Posts: 11
Rep Power: 3
VLima is on a distinguished road
Hello Pablo.

Thank you so much for your clarifications.

I did not manage to check the plots for the breakwater case study yet. When running the case (SST and KEpsilon) I come across some errors in the Python scripts, namely concerning names and paths for files/folders I assume:

bash runCaseKEpsilon
blockMesh meshing...
snappyHexMesh meshing...
Preparing 0 folder...
Setting the fields...
Running...
Simulation complete
runCaseKEpsilon: line 44: [: OF_FLAVOUR: integer expression expected
Sampling free surface...
runCaseKEpsilon: line 59: postProcess: command not found
Sampling pressure...
runCaseKEpsilon: line 62: postProcess: command not found
Processing and plotting variables
Traceback (most recent call last):
File "postSensVOF.py", line 21, in <module>
a = os.listdir('./'+postPath)
OSError: [Errno 2] No such file or directory: './postProcessing/sampleDictVOF'
Traceback (most recent call last):
File "postSensPres.py", line 21, in <module>
a = os.listdir('./'+postPath)
OSError: [Errno 2] No such file or directory: './postProcessing/sampleDictPres'


The files sampleDictVOF and sampleDictPres are in the system folder. I tried to change the path but it does not work either.

The errors are common to both SST and KEpsilon. Is anything missing in my installation? Also, is line 44 error relevant for this?

Any suggestions to overcome this are very welcome.

Thank you very much in advance.
VLima is offline   Reply With Quote

Old   June 2, 2018, 04:35
Default
  #38
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Singapore
Posts: 433
Rep Power: 12
Phicau is on a distinguished road
You found a glitch in the code that select the postprocessing tool for your version of OpenFOAM. I should be able to fix it quite easily. Which version are you using?

Please report what the terminal outputs for the following command: echo $WM_PROJECT_VERSION

Pablo
__________________
Check out my new project: olaFlow --> The olaFlow Support Thread
Phicau is offline   Reply With Quote

Old   June 2, 2018, 06:30
Default
  #39
New Member
 
Vania
Join Date: Dec 2016
Posts: 11
Rep Power: 3
VLima is on a distinguished road
The command "echo $WM_PROJECT_VERSION" outputs "v1606+".
VLima is offline   Reply With Quote

Old   June 3, 2018, 21:13
Default
  #40
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Singapore
Posts: 433
Rep Power: 12
Phicau is on a distinguished road
Hi Vania,

all solved, there was a $ missing in line 44 of the script. All is working now.

You can update the repository to the latest version following the update guide in https://sites.google.com/view/olaflowcfd/source-code

Best,

Pablo
__________________
Check out my new project: olaFlow --> The olaFlow Support Thread
Phicau is offline   Reply With Quote

Reply

Tags
olaflow, waves

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
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
Divergence detected in AMG solver: k when udf loaded google9002 Fluent UDF and Scheme Programming 1 April 20, 2015 22:27
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 04:37.