CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

how to find the maximum vorticity and streamfunction in driven caivty

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By ztdep
  • 1 Post By FMDenaro

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 12, 2013, 09:36
Default how to find the maximum vorticity and streamfunction in driven caivty
  #1
Senior Member
 
ztdep's Avatar
 
p ding
Join Date: Mar 2009
Posts: 427
Rep Power: 19
ztdep is on a distinguished road
Send a message via Yahoo to ztdep Send a message via Skype™ to ztdep
Dear friends:
i solved the 2D lid driven cavity problem using SIMPLE algorithm. could you please tell me how to obtain the maximum vorticity and stream function in the flow field.
thanks
immortality likes this.
ztdep is offline   Reply With Quote

Old   September 12, 2013, 15:34
Default
  #2
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
did you find the answer?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   September 12, 2013, 21:51
Default
  #3
Senior Member
 
ztdep's Avatar
 
p ding
Join Date: Mar 2009
Posts: 427
Rep Power: 19
ztdep is on a distinguished road
Send a message via Yahoo to ztdep Send a message via Skype™ to ztdep
Quote:
Originally Posted by immortality View Post
did you find the answer?
what is the meaning?
ztdep is offline   Reply With Quote

Old   September 13, 2013, 03:08
Default
  #4
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
At steady state, compute the vorticity from your velocity field and solve the elliptic equation Lap (Psi) = vorticity. This way you get both functions and all the values you need
immortality likes this.
FMDenaro is offline   Reply With Quote

Old   September 14, 2013, 09:28
Default
  #5
Senior Member
 
ztdep's Avatar
 
p ding
Join Date: Mar 2009
Posts: 427
Rep Power: 19
ztdep is on a distinguished road
Send a message via Yahoo to ztdep Send a message via Skype™ to ztdep
Quote:
Originally Posted by FMDenaro View Post
At steady state, compute the vorticity from your velocity field and solve the elliptic equation Lap (Psi) = vorticity. This way you get both functions and all the values you need
thank you . i can obtain the whole field of them. but my problem is to find the maximum values so as to compare it with the benchmark solutions in the public paper. Since we only have the field on grid points. then how to find the maximum value?
ztdep is offline   Reply With Quote

Old   September 15, 2013, 14:55
Default
  #6
Senior Member
 
Join Date: Aug 2011
Posts: 272
Rep Power: 15
leflix is on a distinguished road
Quote:
Originally Posted by ztdep View Post
thank you . i can obtain the whole field of them. but my problem is to find the maximum values so as to compare it with the benchmark solutions in the public paper. Since we only have the field on grid points. then how to find the maximum value?

Let's imagine your are in 2D and vorticity is stored in an array VOR(NI,NJ).

VORMAX=VOR(1,1)

DO J=1,NJ
DO I=1,NI

IF ( VOR(I,J).GT.VORMAX ) VORMAX = VOR(I,J)

END DO
END DO

assume fortran coding
leflix is offline   Reply With Quote

Old   September 15, 2013, 21:05
Default
  #7
Senior Member
 
ztdep's Avatar
 
p ding
Join Date: Mar 2009
Posts: 427
Rep Power: 19
ztdep is on a distinguished road
Send a message via Yahoo to ztdep Send a message via Skype™ to ztdep
Quote:
Originally Posted by leflix View Post
Let's imagine your are in 2D and vorticity is stored in an array VOR(NI,NJ).

VORMAX=VOR(1,1)

DO J=1,NJ
DO I=1,NI

IF ( VOR(I,J).GT.VORMAX ) VORMAX = VOR(I,J)

END DO
END DO

assume fortran coding
thank you , but i can not fully agree with you. in this way, the maximum value will depend on the mesh density.
ztdep is offline   Reply With Quote

Old   September 15, 2013, 21:40
Default
  #8
agd
Senior Member
 
Join Date: Jul 2009
Posts: 354
Rep Power: 18
agd is on a distinguished road
Establish a grid-independent solution. Otherwise any approach you follow will depend on the grid, whether you use an interpolation method or simply find the max over the grid.
agd is offline   Reply With Quote

Old   September 15, 2013, 22:18
Default
  #9
agd
Senior Member
 
Join Date: Jul 2009
Posts: 354
Rep Power: 18
agd is on a distinguished road
But even that will be grid dependent if the underlying solution is grid dependent.
agd is offline   Reply With Quote

Old   September 16, 2013, 02:54
Default
  #10
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
leflix is right, just add the i,j values where the maximum is obtained.
What you ask for is simply wrong. In a numerical solution nothing else exists but the grid value. This is established by the Nyquist theorem.
When you want to compute some extra-grid value, is common to use some interpolation to reconstruct a continous function. But the values you obtain are somehow arbitrarily, depending on the order of the polynomial reconstruction.
Therefore, just use the grid value, they are meaningfull of your solution
FMDenaro is offline   Reply With Quote

Old   September 16, 2013, 06:12
Default
  #11
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
Hi Ztdep
Quote:
thank you , but i can not fully agree with you. in this way, the maximum value will depend on the mesh density.
why you say that it will be grid dependent?if the main solution be grid independent,then vorticity values will be independent and you can use the code like a postProcessing utility for obtaining maximum vortivity(at least by theory).
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   September 16, 2013, 15:17
Default open foam
  #12
New Member
 
kaveh fathi
Join Date: Aug 2013
Posts: 2
Rep Power: 0
kaveh fathi is on a distinguished road
hi everybody
can you help me about openFoam ?please
I have run a program but the software shows some error .if you can help me I will send errors for you.
kaveh fathi is offline   Reply With Quote

Old   September 16, 2013, 17:48
Default
  #13
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
hi
whats your problem?which university are you?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   September 18, 2013, 04:15
Default openFoam
  #14
New Member
 
kaveh fathi
Join Date: Aug 2013
Posts: 2
Rep Power: 0
kaveh fathi is on a distinguished road
hi I am in razi university from kermanshah.
I am working with openfoam I am going to analyse ac cavity .my solver is boussinesqsimple .when I run the program there is some error in fvslution(include solver for pressuer & tempreture & velocity and SIMPLE solver) file .I have copied this file from another exaxmple without any changing.
I should be say that the software reads constant & 0 files.
kaveh fathi is offline   Reply With Quote

Reply


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



All times are GMT -4. The time now is 16:01.