|
[Sponsors] |
How to Set NaN for a Variable in Tecplot 360 EX 2018 R2? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 29, 2024, 15:47 |
How to Set NaN for a Variable in Tecplot 360 EX 2018 R2?
|
#1 |
New Member
Lemuel Ramos
Join Date: Feb 2020
Posts: 2
Rep Power: 0 |
Hello, I'm working in Tecplot 360 EX 2018 R2 and am trying to set all values of a specific variable to NaN for just one zone. My aim is to label nodes in one zone without cluttering the view with labels from another. That's why I thought maybe setting NaNs could do the 'blanking' job.
Specifically, I want to set the variable {Head} to NaN in a particular zone. I attempted using the Specify Equations tool with the command: {Head} = NaN However, this results in an error: Unrecognized Command. Error occurred near position marked with "@" below: {Head} = @NaN Has anyone encountered this or know of alternative methods to accomplish this? Any advice would be appreciated! Thanks! |
|
November 8, 2024, 12:52 |
|
#2 |
Senior Member
Scott Fowler
Join Date: May 2009
Posts: 123
Rep Power: 17 |
Interesting idea. Tecplot 360 hasn't really been designed to handle NaN values, but I ran a little experiment to try your idea.
I was able to set data values to NaN using our PyTecplot API by doing the following. 1) Allow Python connections via "Scripting > PyTecplot Connections" and toggle on "Accept connections" 2) Run the following Python code to set the "C" variable of the second zone to NaN Code:
import tecplot as tp import math tp.session.connect() ds = tp.active_frame().dataset num_points = ds.zone(1).num_points ds.zone(1).values("C")[:] = [math.nan]*num_points It appears that, at this point, there's no way to have a zone "opt-out" of rendering the Point/Cell labels. If you'd like to make a formal request for us to update this behavior, please contact our support staff at support@tecplot.com. Thanks, Scott |
|
November 10, 2024, 21:15 |
|
#3 |
New Member
Lemuel Ramos
Join Date: Feb 2020
Posts: 2
Rep Power: 0 |
Thanks Scott!
I will opt for the request. |
|
Tags |
label, nan, tecplot 360 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
does Hyperthreading affect the application of UDF? | SJSW | Fluent UDF and Scheme Programming | 11 | October 10, 2018 23:28 |
ThirdParty compilation error during OF-1.6-ext installation | achyutan | OpenFOAM Installation | 21 | February 28, 2013 06:58 |
Problem installing on 64bit with ver13 | jonititan | OpenFOAM Installation | 5 | May 12, 2006 19:42 |
Problems with installation | jonititan | OpenFOAM Installation | 4 | November 6, 2005 05:16 |
How to set environment variables | kanishka | OpenFOAM Installation | 1 | September 4, 2005 11:15 |