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 Tree7Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   October 19, 2018, 06:00
Default
  #81
New Member
 
Weather
Join Date: Apr 2014
Posts: 5
Rep Power: 6
jovenitta is on a distinguished road
Thanks for your quick reply. I will definitely switch to the latest version of OF.

Quote:
Originally Posted by Phicau View Post
Hi,

this is normal, please check the changelogs. What happens is that there were too many tutorials for different OpenFOAM versions, so I moved the older ones to another repository and just kept the latest version in the main olaFlow repository. You can get them here:

https://github.com/phicau/olaFlow_oldVersionTutorials

and run them normally.

Please, do also note that it is most often recommended to use recent OpenFOAM versions due to bug fixes. Bug fixes and new developments in olaFlow are back-compatible so far.

Best,

Pablo
jovenitta is offline   Reply With Quote

Old   October 22, 2018, 10:43
Question baseWaveFlume tutorial with createBaffles (OF 5)
  #82
New Member
 
Anna Feichtner
Join Date: Dec 2016
Location: Cornwall (UK)
Posts: 18
Rep Power: 3
AnnaF is on a distinguished road
Hi all,


I am using the baseWaveFlume tutorial (OF 5) and am trying to include two internal patches (planar surfaces) to calculate the forces/pressure on. To create the internal patches I am using topoSet -> setsToZones -> createBaffles. My runCase file looks like this:
Quote:
#!/bin/bash

mkdir 0

echo blockMesh meshing...
blockMesh > blockMesh.log

echo Create internal sets and zones for patches ...
topoSet -dict system/topoSetDict.plateFront
topoSet -dict system/topoSetDict.plateBack
setsToZones -noFlipMap # createBaffles takes zones as input

echo Creating patches for force calculation ...
createBaffles -dict system/createBafflesDict -overwrite #zones as input
##createPatches -dict system/createPatchDict -overwrite #sets as input

echo Preparing 0 folder...
rm -fr 0
cp -r 0.org 0

echo Setting the fields...
setFields > setFields.log

echo Running...
olaFlow > olaFlow.log
#interFoam > interFoam.log

echo Simulation complete.
The createBafflesDict:
Quote:
internalFacesOnly false; //true; //neither works

baffles
{
plateFrontBaffle
{
type faceZone;
zoneName plateFront;
flip false;

patches
{
master
{
name plateFrontPatch;
type empty;
}
slave
{
${..master}
}
}
}
plateBackBaffle
{
type faceZone;
zoneName plateBack;
flip false;

patches
{
master
{
name plateBackPatch;
type empty;
}
slave
{
${..master}
}
}
}

}
The patches seem to be set up correctly (when I view them with paraView), the simulation runs and finishes. However, the "createBaffles" command messes up the wave generation at the inlet somehow.

I have also tried using createPatch instead of createBaffles - with sets as input; t run it with interFoam and the wave libraries only; internalFacesOnly true/false in the createBafflesDict; when I remove the createBaffles/createPatches command, everything works as usual...

I am not really sure if this is a general OF question, but I was wondering if it might has to do with the wave generation/absorption libraries?

It would be great to get some hints. Thanks.



With kind regards,
Anna
AnnaF is offline   Reply With Quote

Old   October 22, 2018, 22:18
Default
  #83
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Singapore
Posts: 462
Rep Power: 12
Phicau is on a distinguished road
Hi Anna,

I cannot reproduce this with your information, please send me the case either here or by direct message and I will take a look.

Best,

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

Old   October 23, 2018, 05:13
Question baseWaveFlume tutorial with createBaffles (OF 5)
  #84
New Member
 
Anna Feichtner
Join Date: Dec 2016
Location: Cornwall (UK)
Posts: 18
Rep Power: 3
AnnaF is on a distinguished road
Hi Pablo,


thanks for your quick reply.
Please find the case attached.


Regards,
Anna
Attached Files
File Type: gz baseWaveFlumeFacePatches.tar.gz (5.4 KB, 2 views)
AnnaF is offline   Reply With Quote

Old   October 23, 2018, 22:11
Default
  #85
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Singapore
Posts: 462
Rep Power: 12
Phicau is on a distinguished road
Hi Anna,

the problem was setting the baffles to type 'empty', they should be a wall. Also, when they are walls you need to define the BCs in the 0.org folder files.

Find the working case attached. It is a little bit boring now, though, just a standing wave on the left part and still water elsewhere. I guess that you plan not to extend the baffles down to the bottom as a next step.

Best,

Pablo
Attached Files
File Type: gz baseWaveFlumeFacePatchesWorking.tar.gz (4.4 KB, 1 views)
__________________
Check out my new project: olaFlow --> The olaFlow Support Thread
Phicau is offline   Reply With Quote

Old   October 24, 2018, 07:22
Thumbs up
  #86
New Member
 
Anna Feichtner
Join Date: Dec 2016
Location: Cornwall (UK)
Posts: 18
Rep Power: 3
AnnaF is on a distinguished road
Hi Pablo,

I realized I should have given a more thorough explanation, sorry for that.
Actually, I wanted to have the patches "empty" to just use them to calculate the forces on an internal area (no wall) - in order to evaluate the pressure loss through a porous area in future cases.

Still, your hints pointed me into the right direction and I realized that my baffle setup was wrong and that I need a "cyclic" baffle type. And obviously this has nothing to do with olaFlow...

My case with the cyclic baffle is attached, if anybody else comes across this...

Thanks a lot for your help though, very much appreciated!
Anna
Attached Files
File Type: gz baseWaveFlumeBaffles.tar.gz (5.2 KB, 0 views)
AnnaF is offline   Reply With Quote

Old   November 1, 2018, 01:55
Default
  #87
New Member
 
M.W.G.
Join Date: Sep 2018
Posts: 3
Rep Power: 2
M.W.G. is on a distinguished road
Hi Pablo,

I can see in the manual that the correction velocity Uc is found as follows:
Uc = - sqrt(g/h) * ( eta_measured - eta_target )

Could you kindly let me know what is meant by the targeted elevation (eta_target) ??

To my knowledge, dealing with a pure absorbing wall, the velocity profile should be:
Uc = - sqrt(g/h) * ( eta_measured )

Thanks...

M.W.G
M.W.G. is offline   Reply With Quote

Old   November 4, 2018, 21:34
Default
  #88
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Singapore
Posts: 462
Rep Power: 12
Phicau is on a distinguished road
Hi M.W.G,

you are right in a pure absorption boundary eta_target = 0, meaning that your target is to have no wave, just a fixed water level.

Eta is defined as the free surface elevation and the reference is the still water level, so if you are using active wave absorption at a boundary in which you are also generating waves, eta_target will be your target free surface elevation given by the chosen wave generation theory.

Just a small remark, wave absorption is soon changing in olaFlow, as I will be releasing a new version that works much better and in all relative water depths. You can check the details here: https://sites.google.com/view/olaflo...nts-in-olaflow

Best,

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

Old   November 8, 2018, 05:25
Default oposite wave direction
  #89
New Member
 
Arash
Join Date: Aug 2018
Posts: 9
Rep Power: 2
arashghgood is on a distinguished road
Dear Pablo
in case of basewaveFlume, I want to have 2 salitory waves moving in the opposite direction. for this, I define a new waveDict file with absdir 180 and wavedir 180 and set the outlet with this file.
unfortunately, it doesn't work. I mean that after running, there is just one wave in one direction in parafoam
could you help me
Attached Files
File Type: zip Op-baseWaveFlume.zip (13.5 KB, 2 views)
arashghgood is offline   Reply With Quote

Old   November 8, 2018, 21:41
Default
  #90
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Singapore
Posts: 462
Rep Power: 12
Phicau is on a distinguished road
Hi Arash,

you have forgotten to change the outlet BC for U. I have decided to include this case in the olaFlow tutorials. You can find a working version here: https://github.com/phicau/olaFlow/tr...olitariesFlume

Best,

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

Old   November 12, 2018, 12:39
Default
  #91
New Member
 
Constance Clément
Join Date: Nov 2018
Location: Paris
Posts: 1
Rep Power: 0
ConstanceC is on a distinguished road
Hi Pablo,

First of all, thanks a lot for your work and your dedicated help for the users of olaFlow. I am curently simulting Stokes II waves (T=1,265s, H=0.025m, h=2.5m) in order to after work on fluid-structure. When I plot the elevation along time (simulation ran for 150s) at the center of the basin, I observe a non stabilized signal with a kind of temporal reflection. Also, when I plot the mean amplitude along the numerical wave tank, I get a sinusoidale variation of the mean amplitude instead of a constant one. This underlines the spatial reflection happening along the NWT.

I understood reading your PHD thesis that absorption is implemented for shallow waters and that "performance decreases as you move away from the initial assumption of shallow water". Have you any ideas/papers to be able to model Stokes II waves with high depth and improve their absorption ?

Thanks,

Constance
ConstanceC is offline   Reply With Quote

Old   November 12, 2018, 21:02
Default
  #92
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Singapore
Posts: 462
Rep Power: 12
Phicau is on a distinguished road
Hi Constance,

Thanks! You are right, the present absorption model is developed for shallow waters, but I have just developed a general active wave absorption framework that works well in all water depths, take a look at https://sites.google.com/view/olaflo...nts-in-olaflow

Although I will be releasing this soon, feel free to contact me and we can discuss arrangements for a pre-release test for you. You can find my e-mail at the website in the contact tab.

Best,

Pablo
__________________
Check out my new project: olaFlow --> The olaFlow Support Thread

Last edited by Phicau; November 13, 2018 at 22:02.
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 05:17
UDF velocity profile willroca Fluent UDF and Scheme Programming 2 January 10, 2016 04:13
Divergence detected in AMG solver: k when udf loaded google9002 Fluent UDF and Scheme Programming 1 April 20, 2015 23:27
Error messages atg enGrid 7 August 30, 2013 12:16
Phase locked average in run time panara OpenFOAM 2 February 20, 2008 15:37


All times are GMT -4. The time now is 23:14.