CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

coordination Transform -functional object

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 13, 2018, 06:28
Default coordination Transform -functional object
  #1
Member
 
Chris Schäfer
Join Date: Apr 2017
Posts: 34
Rep Power: 8
Chris123 is on a distinguished road
Hello,
I tried to change the coordination system from (of course )cartesian to cylindrical via functional object.
I added in the controldict:

functions
{


coordinateSystems
{
type fieldCoordinateSystemTransform;
functionObjectLibs ("libmeshTools.so");
log yes;
coordinateRotation cylindrical;
origin (0 0 0);
writeControl timeStep;
writeInterval 1;
mode magnitude;
fields ( U );
}
unfortunately without success.

Error: --> FOAM FATAL ERROR:
Attempt to return primitive entry ITstream : ...controlDict.functions.coordinateSystems.coordin ateRotation, line 70, IOstream: Version 2.0, format ASCII, line 0, OPENED, GOOD
primitiveEntry 'coordinateRotation' comprises
on line 70 the word 'cylindrical'
Obviously my entry "cylindrical" is wrong but I have no idea how to serve the keyword coordinateRotation and specify cylindricalcoordinates
Any idea?
Chris123 is offline   Reply With Quote

Old   August 17, 2021, 12:47
Default
  #2
tkr
New Member
 
Join Date: Nov 2020
Posts: 5
Rep Power: 5
tkr is on a distinguished road
Do you have any suggestion how to use the function object?
I am trying to perform a transformation from Cartesian coordinates to cylindrical coordinates, where the y-coordinate is the axial component along the domain.
Code:
 
coordinateSystem
 {
        type        cylindrical;
        origin      (0 1 0);
            
        rotation
        {
        type        cylindrical;
        axis        (0 1 0);
        }
 }
For me it's not clear what to use for the first "type" and "origin" as well as for the "rotation"-entity.
The function object fieldCoordinateSystemTransform produces an output. However, checking the result doesn't seem plausible.
tkr is offline   Reply With Quote

Old   July 8, 2022, 02:01
Default
  #3
Member
 
Pablo Alarcón
Join Date: Mar 2018
Location: Liège
Posts: 59
Rep Power: 8
palarcon is on a distinguished road
I am facing exactly the same problem now, does anybody know how to do it?

Quote:
Originally Posted by tkr View Post
Do you have any suggestion how to use the function object?
I am trying to perform a transformation from Cartesian coordinates to cylindrical coordinates, where the y-coordinate is the axial component along the domain.
Code:
 
coordinateSystem
 {
        type        cylindrical;
        origin      (0 1 0);
            
        rotation
        {
        type        cylindrical;
        axis        (0 1 0);
        }
 }
For me it's not clear what to use for the first "type" and "origin" as well as for the "rotation"-entity.
The function object fieldCoordinateSystemTransform produces an output. However, checking the result doesn't seem plausible.
palarcon is offline   Reply With Quote

Old   July 8, 2022, 05:07
Default
  #4
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,684
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
The coordinate specification itself looks OK, but I generally find the "cylindrical" specification for the rotation a bit confusing.

You should know that the cylindrical coordinate systems were pretty odd/faulty when used to transform fields (the mesh locations were not properly used for the cylindrical coordinates). This was massively reworked for the OpenFOAM-v1812 version and should now be working correctly, I believe.

Here is a reference to a commit with some details:

https://develop.openfoam.com/Develop...237eea184abb46
olesen is offline   Reply With Quote

Reply


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
error in fireFoam, when running the case wallFireSpread2D zhoubiao1088 OpenFOAM Running, Solving & CFD 9 February 1, 2018 18:45
[foam-extend.org] Error compiling OpenFOAM-1.6-ext Canesin OpenFOAM Installation 137 January 20, 2016 14:56
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 03:23
Compilation error OF1.5-dev on Suse10.3 darenyang OpenFOAM Installation 0 April 29, 2009 04:55
[blockMesh] BlockMeshmergePatchPairs hjasak OpenFOAM Meshing & Mesh Conversion 11 August 15, 2008 07:36


All times are GMT -4. The time now is 12:57.