CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > Tecplot

Expand the 3D surface into a 2D plane--IF Statement

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 8, 2020, 01:24
Default Expand the 3D surface into a 2D plane--IF Statement
  #1
New Member
 
lixinjun
Join Date: Jul 2013
Posts: 6
Rep Power: 12
lixinjun is on a distinguished road
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!!!
lixinjun 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
[Gmsh] gmshToFoam generates patches with 0 faces and 0 points Simurgh OpenFOAM Meshing & Mesh Conversion 4 August 25, 2023 07:58
[Gmsh] Vertex numbering is dense KateEisenhower OpenFOAM Meshing & Mesh Conversion 7 August 3, 2015 10:49
Unwrap the cylindrical surface to a plane CFDturbomachinery CFX 3 December 31, 2014 17:06
Splitting a circle out of a plane rectengular surface hebeldebel STAR-CCM+ 2 March 27, 2014 09:34
[Gmsh] Import problem ARC OpenFOAM Meshing & Mesh Conversion 0 February 27, 2010 10:56


All times are GMT -4. The time now is 08:30.