CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Calculation of Gradient of a Tensor (Stress) in Cylindrical Coordinates in openFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 19, 2018, 05:08
Default Calculation of Gradient of a Tensor (Stress) in Cylindrical Coordinates in openFoam
  #1
Senior Member
 
A. Min
Join Date: Mar 2015
Posts: 308
Rep Power: 12
alimea is on a distinguished road
Hi all,

I need to calculate
d/dr(tau_rt) , d/dt(tau_tt)
where tau is stress tensor that is a volSymmTensorField and r , t are polar coordinates components.
I have two problem:
1- Foam doesn't have cylindrical coordinates
2- the function "fvc::grad(X)" can't get a volSymmTensorField as input.

Could you please help me if you have any similar experience?
alimea is offline   Reply With Quote

Old   October 27, 2018, 05:01
Default
  #2
Member
 
Emad Tandis
Join Date: Sep 2010
Posts: 77
Rep Power: 16
EmadTandis is on a distinguished road
Quote:
Originally Posted by alimea View Post
Hi all,

I need to calculate
d/dr(tau_rt) , d/dt(tau_tt)
where tau is stress tensor that is a volSymmTensorField and r , t are polar coordinates components.
I have two problem:
1- Foam doesn't have cylindrical coordinates
2- the function "fvc::grad(X)" can't get a volSymmTensorField as input.

Could you please help me if you have any similar experience?
Hello
I have a same problem. Did you find any method to calculate fvc::grad(tensorField)?
EmadTandis is offline   Reply With Quote

Old   October 27, 2018, 05:22
Default
  #3
Senior Member
 
A. Min
Join Date: Mar 2015
Posts: 308
Rep Power: 12
alimea is on a distinguished road
Quote:
Originally Posted by EmadTandis View Post
Hello
I have a same problem. Did you find any method to calculate fvc::grad(tensorField)?
Hi
Unfortunately I didn't find any solution, however I defined some volScalarField for every component of stress tensor separately and then calculated the derivative of them.
alimea is offline   Reply With Quote

Old   October 27, 2018, 09:20
Default
  #4
Member
 
Emad Tandis
Join Date: Sep 2010
Posts: 77
Rep Power: 16
EmadTandis is on a distinguished road
Thanks Ali
I did ignore this term in my equation and in this way I solved the problem! But it shouldn't be that difficult to implement this function for tensorFields and I wondered when couldn't find it in OF.
EmadTandis is offline   Reply With Quote

Old   February 7, 2021, 15:48
Default
  #5
New Member
 
roozbeh
Join Date: Oct 2011
Posts: 8
Rep Power: 15
roozbeh_s is on a distinguished road
Quote:
Originally Posted by alimea View Post
Hi
Unfortunately I didn't find any solution, however I defined some volScalarField for every component of stress tensor separately and then calculated the derivative of them.
Dear Alimea,
how did you do that. Could you share your procedure. Also, what did you do for boundaries?
roozbeh_s is offline   Reply With Quote

Old   February 7, 2021, 16:11
Default
  #6
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13
HPE is on a distinguished road
Maybe these help? (haven't used them):


https://github.com/OpenFOAM/OpenFOAM...ld/cylindrical


https://develop.openfoam.com/Develop...temTransform.H
HPE is offline   Reply With Quote

Old   February 7, 2021, 17:59
Default
  #7
New Member
 
roozbeh
Join Date: Oct 2011
Posts: 8
Rep Power: 15
roozbeh_s is on a distinguished road
Quote:
Originally Posted by HPE View Post
Thanks so much. I skimmed through those, but they are used for transforming between Cartesian- and Cylindrical-coordinate systems. But I couldn't find the Gradient operator for the tensor field. Actually, my main concern is taking the gradient of volTensorField to solve the following equation:

div(grad(T)&&grad(T)),
and T is a second-order tensor.
roozbeh_s is offline   Reply With Quote

Reply

Tags
cylindrical, gradient, openfoam, stress, volsymmtensorfield


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
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 06:29
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 15:24
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 January 5, 2016 04:18
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 cfd.direct OpenFOAM Announcements from Other Sources 2 August 31, 2015 14:36
SIMPLE algorithm in 3D cylindrical coordinates zouchu Main CFD Forum 1 January 20, 2014 18:02


All times are GMT -4. The time now is 15:50.