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

How to Set NaN for a Variable in Tecplot 360 EX 2018 R2?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 29, 2024, 15:47
Default 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
LemuelCRA is on a distinguished road
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!
LemuelCRA is offline   Reply With Quote

Old   November 8, 2024, 12:52
Default
  #2
Senior Member
 
Scott Fowler
Join Date: May 2009
Posts: 123
Rep Power: 17
wsfowler is on a distinguished road
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
With NaN values, Tecplot 360 2024 R1 still renders the data labels and displays them as "NAN". However, Tecplot 360 chooses to not render the contour coloring for that zone.

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
wsfowler is offline   Reply With Quote

Old   November 10, 2024, 21:15
Default
  #3
New Member
 
Lemuel Ramos
Join Date: Feb 2020
Posts: 2
Rep Power: 0
LemuelCRA is on a distinguished road
Thanks Scott!
I will opt for the request.
LemuelCRA is offline   Reply With Quote

Reply

Tags
label, nan, tecplot 360


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
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


All times are GMT -4. The time now is 18:40.