|
[Sponsors] |
July 30, 2018, 14:54 |
time-varying bc: "scale-time"
|
#1 |
New Member
Join Date: Jul 2018
Posts: 4
Rep Power: 8 |
Hi,
I have the OpenFOAM-5.0 and I want to create a wave with the "setWaves tool". I'm following the wave tutorial (/multiphase/interFoam/laminar/wave). It's by default setting up with the Airy wave model for the velocity, where the U specifications for the left side are as below: left { type waveVelocity; length 300; } ); scale table ((1200 1) (1800 0))It supposed that a wave is created from the left side with the specified parameters. The "scale" function (that in this case is involved with "table" function), define a time-varying boundary condition, but I don't know how it works. I searched in the OpenFOAM-Userguide and for "table" function is understood there are two inputs (time1 value1) (time2 value2). For this case they are (1200 1) (1800 0), I guess 1200 and 1800 are times (according to the description of the Userguide), however in the original case the time is set up until 200 seconds, then it doesn't make sense for me, but the case works so I think that has another meaning. I don't know what crossScale means eather. I looked at the waveVelocityFvPatchVectorField.H (that remains in /opt/openfoam5/src/waves/derivedFvPatchFields/waveVelocity), where a description is showned: Description This boundary condition provides a waveVelocity condition. This sets the velocity to that specified by a superposition of wave models. The corresponding phase fraction condition looks this condition up and re-uses the wave modelling. UsageI find that that description it's not enough to understand how scale and crossScale work. When I ran the simulation, it looks good, but when I change the some values in the brackets of table, the results of the simulation becomes strange. I would appreciate if someone knows anything about this matter. |
|
March 30, 2019, 21:05 |
not time-varying bc, but position-varying initial condition
|
#2 |
Senior Member
Charles
Join Date: Aug 2016
Location: Vancouver, Canada
Posts: 151
Rep Power: 10 |
Not sure if you find answer. But here is an explanation of how to use the scale.
scale table ((1200 1) (1800 0)) The table is not time a varying table but a position varying table. It means, before x=1200 meter, the scale is 1, and, after x = 1800 meter, the scale is 0 (i.e. no wave), and in between 1200 and 1800, the scale is a ramp from 1 to 0 (i.e. wave is damping out within 600 meters). |
|
Tags |
airy wave, scale, table, time-varying bc "scale" |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
bash script for pseudo-parallel usage of reconstructPar | kwardle | OpenFOAM Post-Processing | 42 | May 8, 2024 00:17 |
[Other] Contribution a new utility: refine wall layer mesh based on yPlus field | lakeat | OpenFOAM Community Contributions | 58 | December 23, 2021 03:36 |
AMI speed performance | danny123 | OpenFOAM | 21 | October 24, 2020 05:13 |
Extrusion with OpenFoam problem No. Iterations 0 | Lord Kelvin | OpenFOAM Running, Solving & CFD | 8 | March 28, 2016 12:08 |
mixerVesselAMI2D's mass is not balancing | sharonyue | OpenFOAM Running, Solving & CFD | 6 | June 10, 2013 10:34 |