|
[Sponsors] |
October 23, 2024, 08:07 |
Calculation of a value on a boundary surface
|
#1 |
Senior Member
A. Min
Join Date: Mar 2015
Posts: 308
Rep Power: 12 |
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) ); HTML Code:
List<symmTensor> tet3RT2 = tet3RT.boundaryField()[patchI];
Do you have any idea? |
|
Tags |
boundary cell, cylindrical coordinates, stress tensor |
|
|
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 |