|
[Sponsors] |
Expand the 3D surface into a 2D plane--IF Statement |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 8, 2020, 02:24 |
Expand the 3D surface into a 2D plane--IF Statement
|
#1 |
New Member
lixinjun
Join Date: Jul 2013
Posts: 6
Rep Power: 13 |
Hi everyone,
I want to expand the 3D surface into a 2D plane. The math transformation piecewise function is like this: if y>=0 y=48*arcsin(y/48) if y<0 and x>=32 y=16*arcsin(y/16) if y<0 and x<32 y=16*arcsin(1) +32-x (x,y are coordinates for this 3D surface.) I have written a Macro as follow: #!MC 1200 $!ALTERDATA EQUATION = "{Y}=if({Y}>=0,48*ASIN({Y}/48), {Y})" $!ALTERDATA EQUATION = "{Y} = if({Y}<0 && {X}>=32, 48*ASIN({Y}/48),{Y})" $!ALTERDATA EQUATION = "{Y} = if({Y}<0 && {X}<32, 16*ASIN(1)+32 -{X},{Y})" But it is wrong!!! I really need your help on this Macro. Thank you so much!!! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Gmsh] gmshToFoam generates patches with 0 faces and 0 points | Simurgh | OpenFOAM Meshing & Mesh Conversion | 4 | August 25, 2023 08:58 |
[Gmsh] Vertex numbering is dense | KateEisenhower | OpenFOAM Meshing & Mesh Conversion | 7 | August 3, 2015 11:49 |
Unwrap the cylindrical surface to a plane | CFDturbomachinery | CFX | 3 | December 31, 2014 18:06 |
Splitting a circle out of a plane rectengular surface | hebeldebel | STAR-CCM+ | 2 | March 27, 2014 10:34 |
[Gmsh] Import problem | ARC | OpenFOAM Meshing & Mesh Conversion | 0 | February 27, 2010 11:56 |