|
[Sponsors] |
March 11, 2010, 09:53 |
timeVaryingRotatingWallVelocity
|
#1 | |
Senior Member
Andrea Pasquali
Join Date: Sep 2009
Location: Germany
Posts: 142
Rep Power: 17 |
Hi everybody,
I saw in Forum there is a BC type to run a simulation with a condition time varying. What I need is a ramp. Quote:
What is it the "outOfBounds clamp;"? Is there an example in tutorials Thanks Andrea
__________________
Andrea Pasquali Last edited by andrea.pasquali; March 27, 2010 at 03:58. Reason: New BC time depending |
||
March 11, 2010, 11:57 |
timeVarying for rotatingWallVelocity
|
#2 |
Senior Member
Andrea Pasquali
Join Date: Sep 2009
Location: Germany
Posts: 142
Rep Power: 17 |
Another problem,
with "timeVaryingUniformFixedValue" I can set a normal velocity to surface of the patch, is it right? Does a BC type exsist to set a parallel velocity to the surface of the patch, like "rotatingWallVelocity"? Does "timeVaryingRotatingWallVelocity" exist? Or does it need to be compile? Thanks Andrea
__________________
Andrea Pasquali |
|
March 11, 2010, 13:47 |
|
#3 |
Senior Member
Claus Meister
Join Date: Aug 2009
Location: Wiesbaden, Germany
Posts: 241
Rep Power: 18 |
Check that out: http://albertopassalacqua.com/?p=69
|
|
March 11, 2010, 14:05 |
|
#4 | ||
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
Quote:
Quote:
You find the list of derived BC's in this folder: .../src/finiteVolume/fields/fvPatchFields/derived Best,
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|||
March 11, 2010, 14:43 |
|
#5 |
Senior Member
Andrea Pasquali
Join Date: Sep 2009
Location: Germany
Posts: 142
Rep Power: 17 |
Thank you very much!
Ciao Alberto, I'd like to write the code to obtain "timeVaryingRotatingWallVelocity" but I don't know C++ languange code... so I'm thinking to: 1) See difference between "timeVaryingUniformFixedValue" and "fixedValue" 2) Copy the difference in "rotatingWallVelocity" code What do you think? Could you suggest me any advice? Thanks
__________________
Andrea Pasquali |
|
March 11, 2010, 14:50 |
|
#6 | ||
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
Quote:
Quote:
Ask if you meet any difficulty Good luck!
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|||
March 12, 2010, 14:42 |
|
#7 |
Senior Member
Andrea Pasquali
Join Date: Sep 2009
Location: Germany
Posts: 142
Rep Power: 17 |
Hi Alberto,
I wrote the .C and .H files for "timeVaryingRotatingWallVelocity" BC type. I attached the files. I think the .H file is correct (I hope!), I'm not sure for the .C file in "Member Functions". Tomorrow I'll try to compile it (is the command "wmakelibso", right?) Could you have a look to the files? Thank you very much
__________________
Andrea Pasquali |
|
March 15, 2010, 04:55 |
|
#8 | |||
Senior Member
Andrea Pasquali
Join Date: Sep 2009
Location: Germany
Posts: 142
Rep Power: 17 |
Hi,
I compiled the new "timeVaryingRotatingWallVelocity". My BC is (in U file): Quote:
Quote:
Quote:
Where I'm wronging? Are the .H and .C not correct? Thanks
__________________
Andrea Pasquali |
||||
March 15, 2010, 09:41 |
|
#9 |
Senior Member
Andrea Pasquali
Join Date: Sep 2009
Location: Germany
Posts: 142
Rep Power: 17 |
Hi,
I made some modify to my .H and .C files. I attached the new files. I compiled but when I run interFoam I obtain the same error... Thanks for any help
__________________
Andrea Pasquali |
|
March 15, 2010, 11:14 |
|
#10 | |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
Quote:
Best,
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
||
March 21, 2010, 03:07 |
|
#11 |
Senior Member
Andrea Pasquali
Join Date: Sep 2009
Location: Germany
Posts: 142
Rep Power: 17 |
Hi,
I still haven't found a solution for my problem... In "rotatingWallVelocity" there are 3 value (origin, axis, omega). In my "timeVaryingRotatingWallVelocity" I put "timeSeries" instead of "omega", without changing "origin" and "axis". The "timeSeries" is into file "ramp". Maybe is it better if I put all value, origin axis timeSeries, into "ramp" file? Thanks for any help Andrea
__________________
Andrea Pasquali |
|
March 27, 2010, 04:01 |
timeVaryingRotatingWallVelocity
|
#12 |
Senior Member
Andrea Pasquali
Join Date: Sep 2009
Location: Germany
Posts: 142
Rep Power: 17 |
Hello,
Finally I compiled the new BC ''timeVaryingRotatingWallVelocity". I attached below the files. Regards Andrea
__________________
Andrea Pasquali |
|
April 2, 2010, 23:31 |
timeVaryingRotatingWallVelocity.....
|
#13 |
New Member
Arvind
Join Date: Mar 2009
Posts: 13
Rep Power: 17 |
Hi Andrea;
I am also trying to use same type of boundary condition ( timeVaryingRotatingWallVelocity) as u have compiled.Please can you share (upload) your working BC in U file and ramp file as an example.It will be very helpful in my work..thanks Regards Arvind |
|
April 5, 2010, 15:23 |
|
#14 |
Senior Member
Andrea Pasquali
Join Date: Sep 2009
Location: Germany
Posts: 142
Rep Power: 17 |
Hi Arvind,
I attached my U and ramp files. I hope could be useful to you! I'm trying this BC with interFoam but i have problems how I posted in http://www.cfd-online.com/Forums/ope...interfoam.html Good luck! Andrea
__________________
Andrea Pasquali |
|
April 6, 2010, 13:28 |
|
#15 |
New Member
Arvind
Join Date: Mar 2009
Posts: 13
Rep Power: 17 |
Thank You very much.....Andrea
|
|
October 1, 2010, 08:18 |
timeVaryingUniformFixedValue outOfBounds
|
#16 |
New Member
Jml
Join Date: Mar 2009
Posts: 23
Rep Power: 17 |
Hello,
I'm using "timeVaryingUniformFixedValue" boundary condition, and there is a parameter called "outOfBounds" which has different options: clamp, warn,repeat.. What are the differences between clamp,warn and repeat? Thanks |
|
October 1, 2010, 11:02 |
|
#17 |
Senior Member
Claus Meister
Join Date: Aug 2009
Location: Wiesbaden, Germany
Posts: 241
Rep Power: 18 |
These parameter tells what to do when the leave the time range. For instance, when you simulation starting at 0 and you have a file with
(0 (1 0 0)) (1 (0.5 0 0 0)) (2 (0 0 0)) these entries. Assuming that you simulation goes to 5 then happens the following for: Just imagine you would fit a linear function between the point, then what would you do outside the defined interval? clamp: the velocity remains 0 after 2 seconds. warn: the will get waring by leaving the range and probably the simulation carries on (never tired myself). repeat: the file will be read from the beginning. cheers |
|
October 7, 2010, 06:40 |
|
#18 |
New Member
Jml
Join Date: Mar 2009
Posts: 23
Rep Power: 17 |
Thank you Idrama. I have tried it and you are right.
Thanks |
|
October 22, 2012, 08:30 |
timeVaryingRotatingWallVelocityFvPatchVectorField for OF 2.1.1
|
#19 |
Senior Member
Jon Elvar Wallevik
Join Date: Nov 2010
Location: Reykjavik, ICELAND
Posts: 103
Rep Power: 20 |
Hi there,
I have been trying to compile "timeVaryingRotatingWallVelocityFvPatchVectorField " for OpenFOAM 2.1.1. The compilation work for OF 2.0.x without problem, but I am getting error in compilation for the 2.1.1. I decided to take the 2.1.1 version of the "rotatingWallVelocityFvPatchVectorField.H, C" and do the same changes as originally done by Andrea Pasquali. The code compiles, but it does not work. That is, the solver is not getting the updated angular velocity (omega). I have tried to activate origin_, axis_ and using Up (which compiles), but still the solver is not getting the updated omega(t). Here is the code, so far. Maybe someone can point out the error. cheers JonW |
|
|
|