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

Calculation of a value on a boundary surface

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 23, 2024, 08:07
Default Calculation of a value on a boundary surface
  #1
Senior Member
 
A. Min
Join Date: Mar 2015
Posts: 308
Rep Power: 12
alimea is on a distinguished road
Hi foamers
I want to calculate the value of the stress tensor in cylindrical coordinates on a boundary surface. I did it in 2 ways:

1. Calculation the stress tensor (tet3) values on the surface and transfer them to cylindrical coordinates
HTML Code:
List<symmTensor> tet30 = tet3.boundaryField()[patchI];
List<symmTensor> tet3RT1 = Tau0;  // Initialization
tet3RT1[i].xx() = tet30[i].xx()*pow(CS,2) + tet30[i].yy()*pow(SIN,2) + 2 * tet30[i].xy()*CS*SIN;   // TauS_rr
 tet3RT1[i].yy() = tet30[i].xx()*pow(SIN,2) + tet30[i].yy()*pow(CS,2) - 2 * tet30[i].xy()*CS*SIN;   // TauS_tt
 tet3RT1[i].xy() = (tet30[i].yy()-tet30[i].xx() )*CS*SIN + tet30[i].xy() * ( pow(CS,2)-pow(SIN,2) ); 
2. Transfering data to cylindrical coordinates and calculation of stress tensor values on the surface (Suppose the tet3RT is the stress tensor in cylindrical coordinates):
HTML Code:
List<symmTensor> tet3RT2 = tet3RT.boundaryField()[patchI];  
The obtained values are a little different! I don't know which of them is the exact value!
Do you have any idea?
alimea is offline   Reply With Quote

Reply

Tags
boundary cell, cylindrical coordinates, stress tensor


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 Automatic Solution Initialization for previous case data file gartz89 Fluent UDF and Scheme Programming 6 March 30, 2020 08:38
OpenFOAM error Vinay Kumar V Main CFD Forum 0 February 20, 2020 10:17
CFD analaysis of Pelton turbine amodpanthee CFX 31 April 19, 2018 19:02
Cluster ID's not contiguous in compute-nodes domain. ??? Shogan FLUENT 1 May 28, 2014 16:03
[snappyHexMesh] Layers don't fully surround surface EVBUCF OpenFOAM Meshing & Mesh Conversion 14 August 20, 2012 05:31


All times are GMT -4. The time now is 03:33.