|
[Sponsors] | |||||
|
|
|
#1 |
|
Senior Member
Rickard
Join Date: May 2010
Location: Lund, Skåne, Sweden
Posts: 142
Rep Power: 4 ![]() |
Hi
I was trying to get the hang of groovyBc and the parabolic inlet velocity condition. Im looking for an opinion on whether one or the other is better combined with a time restriction. Putting it more clearly At the moment I use timeVaryingUniformFixedValue with a ramp and outOfBounds clamp. This is running okay, however I want to change the profile over the area so that it leaves my patch with a certain angle, 21.5degrees. Can groovyBC and parabolic injection be combined with the time-extent? If so, how? Appreciate the help! R |
|
|
|
|
|
|
|
|
#2 | |
|
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,125
Rep Power: 30 ![]() ![]() |
Quote:
|
||
|
|
|
||
|
|
|
#3 |
|
Senior Member
Rickard
Join Date: May 2010
Location: Lund, Skåne, Sweden
Posts: 142
Rep Power: 4 ![]() |
Thx
this timeline would simply be e.g. --> "name of timeLine file" (t(start) t2 . . . t(end) ); ? |
|
|
|
|
|
|
|
|
#4 |
|
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,125
Rep Power: 30 ![]() ![]() |
||
|
|
|
|
|
|
|
#5 |
|
Senior Member
Rickard
Join Date: May 2010
Location: Lund, Skåne, Sweden
Posts: 142
Rep Power: 4 ![]() |
Ofc I looked at it. It says something about timevaryinguniform, however it only related to the "usual" conditions. I've been trying to find the original documentation of this without success. As I said above I've used timeVaryingUniformFixedValue before.
The only example of timelines at the contrib wiki are timelines (); or sth like timelines ( file... impulse ... ); without specifying the impulse input. Thx R |
|
|
|
|
|
|
|
|
#6 | |
|
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,125
Rep Power: 30 ![]() ![]() |
Quote:
Bernhard |
||
|
|
|
||
|
|
|
#7 |
|
Senior Member
Rickard
Join Date: May 2010
Location: Lund, Skåne, Sweden
Posts: 142
Rep Power: 4 ![]() |
I didn't mean to be disrespectful, groovyBC is a wonderful tool.
My only concern was that the timelines input wasn't extended enough, so I dont know what the input file looks like Regards R |
|
|
|
|
|
|
|
|
#8 |
|
Senior Member
Rickard
Join Date: May 2010
Location: Lund, Skåne, Sweden
Posts: 142
Rep Power: 4 ![]() |
Mr GschaiderMay I ask yet another question.
At the moment I just have a mean velocity leaving the patch in the axial direction without any radial components. I would like to create a boundary condition where the flow is leaving the patch at a certain angle relative to the center axis with a speed thats Ucos(theta) where U is the velocity where the angle theta=0. My gridstructure is cartesian, so my question is if I have to calculate all of the x,y,z components or is multiplying a vector depending on the angle to the scalar velocity-value simply enough? Can groovyBC handle this? I hope you understand my question Regards R |
|
|
|
|
|
|
|
|
#9 | |
|
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,125
Rep Power: 30 ![]() ![]() |
Quote:
Don't know how good groovyBC actually is (I'm biased) but its a lot better than the documentation ![]() As you mentioned above that you'd already used timeVaryingUniform I assumed that you were familiar with the file format for those files If you think that that the file should be on the Wiki page feel free to add it |
||
|
|
|
||
|
|
|
#10 | |
|
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,125
Rep Power: 30 ![]() ![]() |
Quote:
But I only help with problems with groovyBC. Not with vector arithmetics |
||
|
|
|
||
|
|
|
#11 |
|
Senior Member
Rickard
Join Date: May 2010
Location: Lund, Skåne, Sweden
Posts: 142
Rep Power: 4 ![]() |
so basically, it is something like this that i want to achieve
patch jet { type groovyBC; variables: "Uz=150;rmax=0.0005;r=sqrt(pow(pos().x,2)+pow(pos( ).y,2));thetaMax=0.9825;theta=thetaMax*r/rmax"; "(r<=0.5) ? U=Uinlet:U=vector(0,0,0);" <-- is this included into the variables? value: Uinlet="Uz*cos(theta)*vector(0,0,1)+Uz*sin(theta)* vector(0,1,0)*Uz*sin(theta)*vector(1,0,0):Uinlet=v ector(0,0,0)"; } I appreciate the help |
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Time step size and max iterations per time step | pUl| | FLUENT | 13 | February 15, 2013 04:05 |
| directMapped problem | panda60 | OpenFOAM Bugs | 4 | July 8, 2010 10:23 |
| Time step in transient simulation | shib | FLUENT | 0 | June 17, 2010 13:07 |
| Computational time | sunnysun | OpenFOAM Running, Solving & CFD | 5 | March 16, 2009 04:32 |
| Restarting interDyMFoam | hsieh | OpenFOAM Bugs | 4 | January 25, 2009 15:19 |