ISPHFluidPart#

class ansys.dyna.core.pre.dynaisph.ISPHFluidPart(pid, minpoint, length, numdirx, numdiry, numdirz)#

Bases: ansys.dyna.core.pre.dynabase.Part

Generates ISPH particles inside a box.

Parameters:
pidint

Part ID.

minpointPoint

Minimum x,y,z-coordinate.

lengthPoint

Box length in the x,y,z-direction.

numdirxint

Number of ISPH particles in the x-direction.

numdiryint

Number of ISPH particles in the y-direction.

numdirzint

Number of ISPH particles in the z-direction.

Overview#

set_smoothing_length

Calculate the smoothing length of the particles.

create_particles

Create ISPH particles inside the box.

create_massflow_plane

Measure ISPH mass flow rate across a defined plane.

set_property

Set properties for an ISPH fluid part.

Import detail#

from ansys.dyna.core.pre.dynaisph import ISPHFluidPart

Attribute detail#

ISPHFluidPart.stub#
ISPHFluidPart.type = 'ISPHFLUID'#
ISPHFluidPart.minpoint#
ISPHFluidPart.length#
ISPHFluidPart.numdirx#
ISPHFluidPart.numdiry#
ISPHFluidPart.numdirz#
ISPHFluidPart.cslh = 1.2#
ISPHFluidPart.hmin = 0.2#
ISPHFluidPart.hmax = 2.0#
ISPHFluidPart.sphini = 0#
ISPHFluidPart.massflowplane = None#

Method detail#

ISPHFluidPart.set_smoothing_length(initial, min, max, optional)#

Calculate the smoothing length of the particles.

Parameters:
initialfloat

Constant for calculating the initial smoothing length of the particles.

minfloat

Scale factor for the minimum smoothing length.

maxfloat

Scale factor for the maximum smoothing length.

optionalfloat, optional

Initial smoothing length, which overrides the true smoothing length.

ISPHFluidPart.create_particles()#

Create ISPH particles inside the box.

ISPHFluidPart.create_massflow_plane(surfaces)#

Measure ISPH mass flow rate across a defined plane.

ISPHFluidPart.set_property()#

Set properties for an ISPH fluid part.