tecplot / handyscripts Goto Github PK
View Code? Open in Web Editor NEWUseful PyTecplot and Tecplot Macro Scripts.
License: MIT License
Useful PyTecplot and Tecplot Macro Scripts.
License: MIT License
Hi All-
Could you please help me converting the cell centered value to node points? I want to export x, y, z, and field from my plt data but my field is cell centered and x,y,z is nodal points. Could you please help me with script on PYTecplot.
Thanks!
Do i have to make any changes in the Time average script for "variables to be averaged" And "constant variables"?
When I am running this script tecplot is crashing
After a bit of experimenting with the tpmath.py, compute_average function, i found that the script gives error if a variable is locked (e.g. by CFD ANALYZER).
is there a way to check if the variable is locked?
if the user does not know about this, such as me, it was much frustration because when the code reaches the following line, it gives error
tp.data.operate.execute_equation("{%s} = 0"%(v.name), zones=[avg_zone])
i think it could be avoided by using constant_variables?
Hey,
I'm having an issue with a macro similar to Convert_SolutionTime.mcr:
$!AlterData [|current_zone|]
Equation = '{Normal_temp} = {CoordinateX} / cos(0.919680578714)'
$!ActiveFieldMaps = [|current_zone|]
$!GETVARNUMBYNAME |temp_num|
NAME = "Normal_temp"
$!AlterData [|current_zone|]
Equation = '{Normal_Coordinate} = {Normal_temp} - |MINVAR[|temp_num|]|'
The macro crashes with:
" >, <. >=, <=, &&, || ==, != are only allowed in first parameter of the IF() function.
If you are using '<' or '>' for MAX or MIN, please change this to use the MAX() or MIN() functions.
Example:
Change {a}>{b} to MAX({a},{b})
Change {a}<{b} to MIN({a},{b}).
Error occurred near position marked with "@" below:
@{Normal_Coordinate} = {Normal_temp} - |MINVAR[20]| "
So that leaves me with the question, why it correctly determines |temp_num| to be 20 but is unable to perform the equation. If i manually changed |temp_num| to 20 it works. Do I have to cast |temp_num| to some other sort of datatype? Also I don't have an IF statement in my macro so I don't get the crash message.
Convert_SolutionTime.mcr actually works in pretty much the same way but for him it seems to work?
Any help would be appreciated!
The macro for Lambda2 criterion is almost correct, except line 18 for s2o2_13.
It should be
{s2o2_13} = {s11}{s13} + {s12}{s23} + {s13}{s33} + {Omga12}{Omga23},
instead of
{s2o2_13} = {s11}{s13} + {s12}{s23} + {s13}{s33} - {Omga12}{Omga23}.
The minus sign usually came from the antisymmetric property of Omega.
Therefore, matrix Omega*Omega (1,3) = Omega(1,2)Omega(2,3), which does not involve minus sign.
For cases like OmegaOmega (2,3) = Omega(2,1)*Omega(1,3) = - Omega(1,2)*Omega(1,3). We have minus sign here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.