CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Tecplot

Some problem of "Qcriterion.mcr&

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

Like Tree1Likes
  • 1 Post By hxaxtma

Reply
 
LinkBack Thread Tools Display Modes
Old   December 15, 2013, 03:30
Default Some problem of "Qcriterion.mcr&
  #1
New Member
 
yu. yuxuan
Join Date: Nov 2013
Posts: 21
Rep Power: 3
yuyuxuan is on a distinguished road
I load the fluent "*.cas and *.dat" and then play the macro in http://download.tecplot.com/macros/Qcriterion.mcr

But it shows "enter the variable number"

What the variable number means? is it the nodes number of my own structure or the range of the x axis or the number of points need to paint. I don't know.



So I ask for help.
yuyuxuan is offline   Reply With Quote

Old   December 16, 2013, 12:33
Default
  #2
Senior Member
 
Scott Rumage
Join Date: May 2009
Location: Seattle, WA
Posts: 117
Rep Power: 8
scott_rumage is on a distinguished road
I believe the macro is looking to confirm (and match-up) the name of the variable of velocity in the x direction (typically labeled U). The macro will also go on to ask for the name of the variable in the y & z direction (typically labeled V & W).

Last edited by scott_rumage; December 16, 2013 at 17:20.
scott_rumage is offline   Reply With Quote

Old   December 18, 2013, 07:22
Default
  #3
New Member
 
yu. yuxuan
Join Date: Nov 2013
Posts: 21
Rep Power: 3
yuyuxuan is on a distinguished road
Quote:
Originally Posted by scott_rumage View Post
I believe the macro is looking to confirm (and match-up) the name of the variable of velocity in the x direction (typically labeled U). The macro will also go on to ask for the name of the variable in the y & z direction (typically labeled V & W).
Thanks for replying
I do the following to type


But it gives the error.



I give the code

Code:
#!MC 1400
# Created by Tecplot 360 build 14.0.2.35002

$!ALTERDATA 
  EQUATION = '{Q} = 0'

$!VarSet |NUMVARSINIT| = |NUMVARS|
$!VarSet |NUMVARSINIT| += 1

$!PROMPTFORTEXTSTRING |U|
INSTRUCTIONS = "Enter the variable number for U"
$!PROMPTFORTEXTSTRING |V|
INSTRUCTIONS = "Enter the variable number for V"
$!PROMPTFORTEXTSTRING |W|
INSTRUCTIONS = "Enter the variable number for W"

$!GLOBALTHREEDVECTOR UVAR = |U|
$!GLOBALTHREEDVECTOR VVAR = |V|
$!GLOBALTHREEDVECTOR WVAR = |W|


$!ALTERDATA 
  EQUATION = '{dudx} = ddx(u)'
$!ALTERDATA 
  EQUATION = '{dvdx} = ddx(v)'
$!ALTERDATA 
  EQUATION = '{dwdx} = ddx(w)'
$!ALTERDATA 
  EQUATION = '{dudy} = ddy(u)'
$!ALTERDATA 
  EQUATION = '{dvdy} = ddy(v)'
$!ALTERDATA 
  EQUATION = '{dwdy} = ddy(w)'
$!ALTERDATA 
  EQUATION = '{dudz} = ddz(u)'
$!ALTERDATA 
  EQUATION = '{dvdz} = ddz(v)'
$!ALTERDATA 
  EQUATION = '{dwdz} = ddz(w)'
$!ALTERDATA 
  EQUATION = '{s11} = {dudx}' 
$!ALTERDATA 
  EQUATION = '{s12} = 0.5*({dudy}+{dvdx})' 
$!ALTERDATA 
  EQUATION = '{s13} = 0.5*({dudz}+{dwdx})' 
$!ALTERDATA 
  EQUATION = '{s22} = {dvdy}' 
$!ALTERDATA 
  EQUATION = '{s23} = 0.5*({dvdz}+{dwdy})' 
$!ALTERDATA 
  EQUATION = '{s33} = {dwdz}' 
$!ALTERDATA 
  EQUATION = '{Omga12} = 0.5*({dudy}-{dvdx})' 
$!ALTERDATA 
  EQUATION = '{Omga13} = 0.5*({dudz}-{dwdx})' 
$!ALTERDATA 
  EQUATION = '{Omga23} = 0.5*({dvdz}-{dwdy})' 
$!ALTERDATA 
  EQUATION = '{s2o2_11} = {s11}**2 + {s12}**2 + {s13}**2 - {Omga12}**2 - {Omga13}**2' 
$!ALTERDATA 
  EQUATION = '{s2o2_12} = {s11}*{s12} + {s12}*{s22} + {s13}*{s23} - {Omga13}*{Omga23}' 
$!ALTERDATA 
  EQUATION = '{s2o2_13} = {s11}*{s13} + {s12}*{s23} + {s13}*{s33} - {Omga12}*{Omga23}' 
$!ALTERDATA 
  EQUATION = '{s2o2_22} = {s12}**2 + {s22}**2 + {s23}**2 - {Omga12}**2 - {Omga23}**2' 
$!ALTERDATA 
  EQUATION = '{s2o2_23} = {s12}*{s13} + {s22}*{s23} + {s23}*{s33} - {Omga12}*{Omga13}' 
$!ALTERDATA 
  EQUATION = '{s2o2_33} = {s13}**2 + {s23}**2 + {s33}**2 - {Omga13}**2 - {Omga23}**2'
$!ALTERDATA 
  EQUATION = '{Q} = 2*{Omga12}**2 + 2*{Omga13}**2 + 2*{Omga23}**2 - {S11}**2 - {S22}**2 - {S33}**2 - 2*{S12}**2 - 2*{S13}**2 - 2*{S23}**2'

$!VarSet |NUMVARSFIN| = |NUMVARS|
$!DELETEVARS [|NUMVARSINIT|-|NUMVARS|]
yuyuxuan is offline   Reply With Quote

Old   December 19, 2013, 15:22
Default
  #4
Senior Member
 
Scott Rumage
Join Date: May 2009
Location: Seattle, WA
Posts: 117
Rep Power: 8
scott_rumage is on a distinguished road
I have another suggestion that I would like you to try. In Tecplot 360’s top menu line click on “Data” the “Data Set Info..”. A table of variables will appear. From that list there will be a number associated to the x-velocity (and y & z velocity), it may be something like “4: x-velocity, 5: y-velocity, 6: z-velocity”. It is this number that the macro may be seeking for the variable number.

So at the macro prompt, enter the variable number that is next to x-velocity variable name. In this example is would be 4 for U.
scott_rumage is offline   Reply With Quote

Old   December 20, 2013, 22:17
Smile
  #5
New Member
 
yu. yuxuan
Join Date: Nov 2013
Posts: 21
Rep Power: 3
yuyuxuan is on a distinguished road
Quote:
Originally Posted by scott_rumage View Post
I have another suggestion that I would like you to try. In Tecplot 360’s top menu line click on “Data” the “Data Set Info..”. A table of variables will appear. From that list there will be a number associated to the x-velocity (and y & z velocity), it may be something like “4: x-velocity, 5: y-velocity, 6: z-velocity”. It is this number that the macro may be seeking for the variable number.

So at the macro prompt, enter the variable number that is next to x-velocity variable name. In this example is would be 4 for U.
Forgive my late response because I try it. You are right. It's the No. before the variable name. and for example, if there are 38 variables and I enter the 49, it will error. And if I enter 5(the velocity number). It is Ok, Thank you very much. You solve my question.
yuyuxuan is offline   Reply With Quote

Old   January 9, 2014, 20:55
Default
  #6
Member
 
Join Date: Oct 2013
Posts: 30
Rep Power: 3
Светлана is on a distinguished road
Thanks for cross-posting.
Светлана is offline   Reply With Quote

Old   May 26, 2014, 14:46
Default invalid macro file header
  #7
Azy
New Member
 
Azadeh Saeedi
Join Date: Mar 2014
Location: Canada
Posts: 23
Rep Power: 3
Azy is on a distinguished road
hello every one,

I just try this macro in tecplot 360, it comes up with this error, I dont know how to fix it, is anybody could help me about it?

thanks,
Azy is offline   Reply With Quote

Old   September 22, 2014, 13:04
Default
  #8
Member
 
Join Date: Jan 2014
Posts: 58
Rep Power: 3
hxaxtma is on a distinguished road
type in the number of the variable,

lookt it up at data->data set info
Azy likes this.
hxaxtma is offline   Reply With Quote

Old   September 23, 2014, 11:53
Default Q-criteria and Lambda 2 improvements
  #9
Member
 
Durrell Rittenberg
Join Date: May 2011
Location: Bellevue WA
Posts: 38
Rep Power: 6
Durrell4 is on a distinguished road
Send a message via MSN to Durrell4 Send a message via Yahoo to Durrell4 Send a message via Skype™ to Durrell4
Hi All,

We will be making the q-criteria and Lambda 2 available later this year in the main interface of Tecplot 360 EX to improve the ease of use. I would recommend that you join our beta program at the link below to be among the 1st to try the new technology.

http://www.tecplot.com/my/be-a-beta-tester/

also check the whitepaper on vortex topography here: http://download.tecplot.com/docs/Som..._Revisited.pdf

Durrell
Durrell4 is offline   Reply With Quote

Reply

Tags
macros, tecplot 360

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 04:43
Gambit - meshing over airfoil wrapping (?) problem JFDC FLUENT 1 July 11, 2011 05:59
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 06:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 19:13
Is this problem well posed? Thomas P. Abraham Main CFD Forum 5 September 8, 1999 14:52


All times are GMT -4. The time now is 01:58.