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

[snappyHexMesh] rotate searchableBox

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 2 Post By KKV_88

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 17, 2017, 09:15
Question rotate searchableBox
  #1
Member
 
Fridrik Magnusson
Join Date: Aug 2017
Location: Denmark
Posts: 34
Rep Power: 7
Fridrik is on a distinguished road
Hallo Everyone

Im trying to rotate a searchableBox 60 deg (pi/3) with the following command:

Code:
refinementBox4
  {
    type searchableBox;  
    min (0.355 0.190 -0.01);
    max (0.485 0.250 0.12);
    transform
            {
                coordinateSystem
                {
                    type    cartesian;
                    origin  (0 0 0); 
                    coordinateRotation
                    {
                      type    localAxesRotation;
                      e3      (60 0 0);
                    }
                }
            }
  }
but it is not rotating at all, can anybody give me a hint of what im doing wrong ?
Fridrik is offline   Reply With Quote

Old   August 12, 2018, 07:41
Default
  #2
New Member
 
KAWA
Join Date: Mar 2018
Posts: 4
Rep Power: 7
KMM080 is on a distinguished road
Quote:
Originally Posted by Fridrik View Post
Hallo Everyone

Im trying to rotate a searchableBox 60 deg (pi/3) with the following command:

Code:
refinementBox4
  {
    type searchableBox;  
    min (0.355 0.190 -0.01);
    max (0.485 0.250 0.12);
    transform
            {
                coordinateSystem
                {
                    type    cartesian;
                    origin  (0 0 0); 
                    coordinateRotation
                    {
                      type    localAxesRotation;
                      e3      (60 0 0);
                    }
                }
            }
  }
but it is not rotating at all, can anybody give me a hint of what im doing wrong ?

Hi Fridrik,
Have you solved this problem, I have exactly the same problem?

Regards
KMM080 is offline   Reply With Quote

Old   November 9, 2019, 09:56
Default
  #3
New Member
 
Kristina
Join Date: May 2018
Posts: 3
Rep Power: 7
KKV_88 is on a distinguished road
Quote:
Originally Posted by KMM080 View Post
Hi Fridrik,
Have you solved this problem, I have exactly the same problem?

Regards
I'm posting my solution in the following. Hope it will help someone.

I rotated searchableBox for 45 deg. around y-axes.

Code:
zone1
    {
		name zone1;
        	type searchableRotatedBox;
        	span    (1 1 1); //dimensions of the box
        	origin  (0 0 -0.707); //first corner of the box - origin of local coordinate system

		//definition of the axes of the local coordinate system (cartesian, left-handed coordinate system)
                
		e1      (0.707 0 0.707); //relationship of e1 local axes and global coord.system
                e3      (-0.707 0 0.707); //relationship of e3 local axes and global coord.system
    }
allanZHONG and davcrisp like this.
KKV_88 is offline   Reply With Quote

Reply

Tags
rotating, searchablebox, shm

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[Gmsh] Rotate and duplicate mesh! tareqkh OpenFOAM Meshing & Mesh Conversion 1 December 23, 2019 13:01
Rotate frame reference in transient simulation wjy-c CFX 4 September 4, 2013 21:20
How to rotate a pointScalarField? carowjp OpenFOAM Programming & Development 5 January 27, 2013 19:49
surfaceTransformPoints -rotate ynos OpenFOAM Post-Processing 1 July 11, 2012 15:35
[GAMBIT] Rotate and revolute possible ? Ijaz ANSYS Meshing & Geometry 19 January 26, 2012 23:36


All times are GMT -4. The time now is 09:34.