|
[Sponsors] |
December 1, 2020, 13:58 |
Tensor in cylindrical coordinate system
|
#1 |
New Member
Bruno
Join Date: Jul 2018
Posts: 6
Rep Power: 8 |
Hello,
I am solving the following equation: with given by Using OpenFOAM I defined the tensor as Code:
volScalarField Dxx( Dm + lxx*mag(U) ); volScalarField Dyy( Dm + lyy*mag(U) ); volScalarField Dyy( Dm + lzz*mag(U) ); symmTensor Txx(1,0,0,0,0,0); symmTensor Tyy(0,0,0,1,0,0); symmTensor Tzz(0,0,0,0,0,1); volSymmTensorField D = Dxx*Txx + Dyy*Tyy + Dzz*Tzz; I would like to know how implement in OF the transformation , in other words, I use as input and internally OF transform to |
|
December 5, 2020, 05:19 |
|
#2 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
You should take a look at the coordinate system classes,but make sure you are using OpenFOAM-v1812 or newer.
To have the correct result, in cylindrical coordinates you will also need to provide the locations where the transformation occurs. You can have a single tensor transformed at all of the locations, or supply locations and tensors. The field of positions can also be an indirect list etc, so only for a zone etc. Unfortunately, since there are so many variants of transforms the corresponding methods in coordinateSystem are wrapped in macros - better for code maintenance (ie, programmer sanity), but horrible to read as a user. Probably best to look at the extracted documentation when picking your method. https://www.openfoam.com/documentati...ateSystem.html |
|
Tags |
coordinate transformation, cylindrical coordinate, tensor |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ANSYS Meshing] Coordinate system Import to Fluent | superduke1200 | ANSYS Meshing & Geometry | 4 | December 16, 2018 04:41 |
Local cylindrical coordinate system | dniem | FLUENT | 2 | July 9, 2018 13:43 |
Problem with exporting solution data concerning the coordinate System | elbi_ente | Structural Mechanics | 0 | October 9, 2015 02:49 |
Define a cylindrical Coordinate System in CFX!!! | mohammad | CFX | 0 | September 10, 2014 03:27 |
CFD Software with Cylindrical and Spherical Coordinate | cfd2010 | Main CFD Forum | 0 | June 9, 2010 22:55 |