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

Individual element of a symmetric matrix

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   January 9, 2019, 07:26
Default Individual element of a symmetric matrix
  #1
gu1
Senior Member
 
Guilherme
Join Date: Apr 2017
Posts: 231
Rep Power: 10
gu1 is on a distinguished road
Hello,

I would like to know how to extract the xy element from the strain rate tensor:

Quote:
volSymmTensorField S = symm(fvc::grad(U()));
Could someone help me write the code? How would I call the extracted element in an equation (epsilon equation for example)?
gu1 is offline   Reply With Quote

 


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
[Gmsh] 3D Mesh conversion from gmsh-2.5.0 to OpenFOAM Ancioi OpenFOAM Meshing & Mesh Conversion 17 January 8, 2019 23:50
Identifying Markers in a CGNS Mesh tjim SU2 3 October 12, 2018 01:21
[Other] Mesh Importing Problem cuteapathy ANSYS Meshing & Geometry 2 June 24, 2017 05:29
autoPatch error, mesh quality related...? Alexvader OpenFOAM 0 October 6, 2011 17:57
OpenFOAM version 1.6 details lakeat OpenFOAM Running, Solving & CFD 42 August 26, 2009 21:47


All times are GMT -4. The time now is 09:58.