Code Monkey home page Code Monkey logo

handyscripts's People

Contributors

antoineligier2 avatar brandon360plots avatar connellrjohn avatar davetaflin avatar devonsimpson avatar gibsonat360 avatar m-zaka avatar mehrdadj93 avatar scottfowler avatar theodoregoetz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

handyscripts's Issues

How to Convert the Cell Centered Value To Node

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!

Doubts about TimeAverage.py

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

Locked Variables

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?

issue with |MINVAR[nnn]|

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!

Wrong Lambda2 criterion in macro folder

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 Omega
Omega (2,3) = Omega(2,1)*Omega(1,3) = - Omega(1,2)*Omega(1,3). We have minus sign here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.