massed_fluid_viscosity#
- ptrace.massed_fluid_viscosity(p0: float) int #
Specify the dynamic viscosity of the corresponding fluid field where the massed-particles are traced.
The default setting for this parameter is the constant value of “1.9620e+05”, with the Fluid Dynamic Viscosity variable name set to “none”. This indicates that no variable name is used; rather the constant dynamic viscosity is used in the calculations instead. The “ptrace: massed_particles” command does not have to be ON in order to specify this command. This parameter is figured only when the drag force term of the massed-particle momentum balance equation is used.- Args:
- p0:
‘viscosity’ the dynamic viscosity constant value of the corresponding fluid field
- p1:
‘viscosity’ the dynamic viscosity constant value of the corresponding fluid field
- p2:
‘viscosity’ the dynamic viscosity variable name of the corresponding fluid field - defaults to “none” when constant value used
- Examples:
# # Create a massless point trace # ensight.part.select_all() ensight.ptrace.select_default() ensight.part.modify_begin() ensight.ptrace.variable("velocity") ensight.part.modify_end() ensight.part.select_all() ensight.ptrace.create_pt() ensight.part.select_begin(2) # # Specify dynamic viscosity scalar field variable name of the fluid. # ensight.part.modify_begin() ensight.ptrace.massed_fluid_viscosity("dynamic_viscosity") ensight.part.modify_end() # # Change part to massed trace using current settings # ensight.part.modify_begin() ensight.ptrace.massed_particles("ON") ensight.part.modify_end()
- Returns:
zero on success, non-zero on error