|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Bruno
Join Date: Jul 2018
Posts: 6
Rep Power: 8 ![]() |
Hello,
I am solving the following equation: ![]() with ![]() ![]() Using OpenFOAM I defined the tensor ![]() 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 ![]() ![]() ![]() |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
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 |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ANSYS Meshing] Coordinate system Import to Fluent | superduke1200 | ANSYS Meshing & Geometry | 4 | December 16, 2018 03:41 |
Local cylindrical coordinate system | dniem | FLUENT | 2 | July 9, 2018 12:43 |
Problem with exporting solution data concerning the coordinate System | elbi_ente | Structural Mechanics | 0 | October 9, 2015 01:49 |
Define a cylindrical Coordinate System in CFX!!! | mohammad | CFX | 0 | September 10, 2014 02:27 |
CFD Software with Cylindrical and Spherical Coordinate | cfd2010 | Main CFD Forum | 0 | June 9, 2010 21:55 |