sample_by#

query_ent_var.sample_by(p0: str) int#

Specify how to report values queried over time.

This command must lie between either a “query_ent_var: begin” and “query_ent_var: end” pair, or a “query_ent_var: modify_begin” and “query_ent_var: modify_end” pair.
Only applicable with the “query_ent_var: type time” command.
Args:
p0:

‘option’

  • value

  • fft

Examples:
# 
# Select part 
# 
ensight.part.select_begin(2)
# 
# Query over time 
# 
ensight.query_ent_var.begin()
ensight.query_ent_var.description("")
# WARNING: following line includes OBSOLETE call (ensight.query_ent_var.type).
ensight.query_ent_var.type("time")
ensight.query_ent_var.number_of_sample_pts(84)
ensight.query_ent_var.begin_simtime(2.2300e+02)
ensight.query_ent_var.end_simtime(4.8800e+02)
ensight.query_ent_var.constrain("node")
ensight.query_ent_var.sample_by("value")
ensight.query_ent_var.node_id(1)
# WARNING: following line includes OBSOLETE call (ensight.query_ent_var.variable).
ensight.query_ent_var.variable("temp")
ensight.query_ent_var.end()
ensight.query_ent_var.query()
# 
# Select resulting plot curve 
# 
ensight.curve.select_begin(0)
# 
# Modified to sample by FFT 
# 
ensight.query_ent_var.modify_begin()
# WARNING: following line includes OBSOLETE call (ensight.query_ent_var.type).
ensight.query_ent_var.type("time")
ensight.query_ent_var.constrain("node")
ensight.query_ent_var.sample_by("fft")
ensight.query_ent_var.modify_end()
Returns:

zero on success, non-zero on error