CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Oscillatory Shear Index Calculation

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree6Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 5, 2014, 23:06
Question Oscillatory Shear Index Calculation
  #1
Senior Member
 
Ashkan Javadzadegan
Join Date: Sep 2010
Posts: 255
Rep Power: 16
ashtonJ is on a distinguished road
Dear all,
Does anybody know how to calculate the oscillatory shear index (OSI) by ANSYS CFX, the OSI equation is attached.

Thank you.
Regards,
AshtonJ
Attached Images
File Type: jpg OSI.jpg (9.0 KB, 285 views)
ashtonJ is offline   Reply With Quote

Old   July 6, 2014, 06:07
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,694
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
What are all the terms in the equation?
ghorrocks is offline   Reply With Quote

Old   July 6, 2014, 07:15
Default
  #3
Senior Member
 
Ashkan Javadzadegan
Join Date: Sep 2010
Posts: 255
Rep Power: 16
ashtonJ is on a distinguished road
OSI is equal to absolute of wall shear stress integral over time divided by integral of absolute wall shear stress over time.
N.Mahesh likes this.
ashtonJ is offline   Reply With Quote

Old   July 6, 2014, 07:32
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,694
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Is this evaluated at each wall node, or averaged somehow?

You will probably need to activate the transient statistics on the results tab in CFX-Pre to do this.
ghorrocks is offline   Reply With Quote

Old   July 7, 2014, 05:46
Default
  #5
Member
 
Dave
Join Date: Aug 2011
Posts: 33
Rep Power: 14
Dave442 is on a distinguished road
Hi Ashkan,

Glenn - OSI is a non-dimensional scalar variable that is often used to characterise the oscillatory nature of vascular flows. It is calculated at each node and describes the transient deflection of the instantaneous WSS vector from the direction of the time-averaged WSS vector.

Ashkan - You can approximate both integrals using the trapezoidal rule and the instantaneous values of the WSS vector/components. From there it is straightforward to calculate the OSI. I did this in the past using a small python script but I'm sure you can do it in CFD post and/or any data manipulation package (Matlab, SciLab etc.)

Good luck,
Dave
Dave442 is offline   Reply With Quote

Old   July 7, 2014, 05:53
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,694
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
OK, thanks.

You might be able to do this using the transient statistics options in CFX. Then you will be able to have this as a variable accessible in CFD-Post like any other variable. So you should be able to do this inside the solver without any external post-processing.
ghorrocks is offline   Reply With Quote

Old   December 9, 2014, 12:30
Default
  #7
New Member
 
Emily Imdieke
Join Date: Apr 2013
Posts: 20
Rep Power: 13
emily.imdieke is on a distinguished road
Were you able to calculate it via Ansys?
emily.imdieke is offline   Reply With Quote

Old   December 9, 2014, 14:26
Default
  #8
Senior Member
 
Ashkan Javadzadegan
Join Date: Sep 2010
Posts: 255
Rep Power: 16
ashtonJ is on a distinguished road
Yes.
In CFX-Pre, what you need to do is to calculate the transient statistics of wall shear stress (WSSX, WSSY, WSSZ) and absolute wall shear stress components. Then OSI can be calculated via the following formula:
OSI=0.5*(1-(trans_statistic(abs(WSSX))+trans_statistic(abs(WS SY))+trans_statistic(abs(WSSZ)))/(abs(trans_statistic(WSSX)+trans_statistic(WSSY)+t rans_statistic(WSSZ))))
sadjad.s and N.Mahesh like this.
ashtonJ is offline   Reply With Quote

Old   December 12, 2014, 09:51
Default
  #9
New Member
 
Emily Imdieke
Join Date: Apr 2013
Posts: 20
Rep Power: 13
emily.imdieke is on a distinguished road
Thanks for your response.
I have never seen the trans_static function used like that before. You may not know, but is this equation then not possible to implement just in CFD-Post using the WSS.Trnavg variables that you can set to solve for Pre?
emily.imdieke is offline   Reply With Quote

Old   December 12, 2014, 22:48
Default
  #10
Senior Member
 
Ashkan Javadzadegan
Join Date: Sep 2010
Posts: 255
Rep Power: 16
ashtonJ is on a distinguished road
Yes, it needs to be done in CFD-Post. In CFX Pre you just save the arithmetic average of WSS and abs(WSS) components and then in CFD-Post you define the above-mentioned formula to find the OSI.
ashtonJ is offline   Reply With Quote

Old   December 13, 2014, 23:37
Default
  #11
New Member
 
Emily Imdieke
Join Date: Apr 2013
Posts: 20
Rep Power: 13
emily.imdieke is on a distinguished road
I have tried this and it has given me negative numbers for some reason. I am going to keep playing around with it, but do you know why this might be?
emily.imdieke is offline   Reply With Quote

Old   December 14, 2014, 01:02
Default
  #12
Senior Member
 
Ashkan Javadzadegan
Join Date: Sep 2010
Posts: 255
Rep Power: 16
ashtonJ is on a distinguished road
OK. There is a mistake in the OSI equation, swap the numerator and the denominator of the OSI equation, then it should work ...
ashtonJ is offline   Reply With Quote

Old   December 15, 2014, 12:16
Default
  #13
New Member
 
Emily Imdieke
Join Date: Apr 2013
Posts: 20
Rep Power: 13
emily.imdieke is on a distinguished road
I finally got it to work in CFD-Post. I was trying to manipulate the data in Matlab as well to see if I could get it to run that way too and it didn't work, but doing it straight in CFD-Post is much easier.
Thanks for the help! I really appreciate it!
emily.imdieke is offline   Reply With Quote

Old   August 5, 2015, 10:18
Default
  #14
New Member
 
Alfamaniac's Avatar
 
Dimitris
Join Date: May 2012
Location: Patras, Greece
Posts: 2
Rep Power: 0
Alfamaniac is on a distinguished road
Dear all,

I've tried all the instructions above but it seems that i have a problem. When i'm changing the time step in CFD-Post the value of the OSI is changing too, which is not right. It suppose to be a time average WSS ratio, which means that has to has a fixed value. Any thoughts??Have i done anything wrong or I've just missing something?

Best regards,

Dimitris
Alfamaniac is offline   Reply With Quote

Old   August 5, 2015, 19:23
Default
  #15
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,694
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
You don't set time step in CFD-Post so I do not understand what you mean. Also, time step does not appear in the equations shown above so I and now confused x2.
jaybob likes this.
ghorrocks is offline   Reply With Quote

Old   August 6, 2015, 01:49
Default
  #16
Senior Member
 
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22
Lance is on a distinguished road
By changing time step in post you mean that you are looking at different .trn files I presume? The OSI calculation will change when looking at different results (in time), because your time-averaging is changing too. I guess OSI is defined over one single heart beat and not over a fraction of a heartbeat?
Lance is offline   Reply With Quote

Old   August 6, 2015, 02:16
Default
  #17
New Member
 
Alfamaniac's Avatar
 
Dimitris
Join Date: May 2012
Location: Patras, Greece
Posts: 2
Rep Power: 0
Alfamaniac is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
You don't set time step in CFD-Post so I do not understand what you mean. Also, time step does not appear in the equations shown above so I and now confused x2.

Quote:
Originally Posted by Lance View Post
By changing time step in post you mean that you are looking at different .trn files I presume? The OSI calculation will change when looking at different results (in time), because your time-averaging is changing too. I guess OSI is defined over one single heart beat and not over a fraction of a heartbeat?
Exactly!When i'm changing the time step in CFD-Post the value of OSI is changing too. But now i can understand that it's happening because we are looking on a different .trn file as you mentioned above.How it would be possible to calculate OSI for one single heart beat?Should I do anything differently in CFX-Pre or should I define there any expressions?The expression that i'm using for the OSI (in CFD-Post) is

0.5*(1-((abs((Wall Shear X.Trnavg)+(Wall Shear Y.Trnavg)+(Wall Shear Z.Trnavg)))/((abs(Wall Shear X.Trnavg))+(abs(Wall Shear Y.Trnavg))+(abs( Wall Shear Z.Trnavg))))).
raminostadi likes this.
Alfamaniac is offline   Reply With Quote

Old   August 6, 2015, 02:23
Default
  #18
Senior Member
 
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22
Lance is on a distinguished road
Load the .trn file that is the last time step in the cardiac cycle. It will contain data that is time-averaged over one heart beat. But I guess you will need to run several cycles to get rid of initial value effects? Then delay the start of the averaging.
Alfamaniac likes this.
Lance is offline   Reply With Quote

Old   June 18, 2017, 02:31
Default
  #19
New Member
 
reza abdollahi
Join Date: Oct 2016
Posts: 6
Rep Power: 9
r_abdollahi70 is on a distinguished road
Quote:
Originally Posted by ashtonJ View Post
Yes.
In CFX-Pre, what you need to do is to calculate the transient statistics of wall shear stress (WSSX, WSSY, WSSZ) and absolute wall shear stress components. Then OSI can be calculated via the following formula:
OSI=0.5*(1-(trans_statistic(abs(WSSX))+trans_statistic(abs(WS SY))+trans_statistic(abs(WSSZ)))/(abs(trans_statistic(WSSX)+trans_statistic(WSSY)+t rans_statistic(WSSZ))))
hi
I working with fluent. how can I use this function?
I can use cfd-post.
r_abdollahi70 is offline   Reply With Quote

Old   June 18, 2017, 06:46
Default
  #20
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,694
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
No idea. Try the fluent forum.
ghorrocks is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF for calculating Oscillatory Shear Index (OSI) vasava Fluent UDF and Scheme Programming 24 April 20, 2023 05:48
Shear Stress Calculation in the flow. auburnuser FLOW-3D 11 May 12, 2018 13:49
[OpenFOAM] Paraview 3.98 - errors when saving geometry file pajot ParaView 1 September 28, 2013 10:45
OpenFOAM install on Ubuntu Natty 11.04 bkubicek OpenFOAM 13 May 26, 2011 05:48
Warning 097- AB Siemens 6 November 15, 2004 04:41


All times are GMT -4. The time now is 19:51.