ansys.dyna.core.pre.dynaicfd.DynaICFD#

class ansys.dyna.core.pre.dynaicfd.DynaICFD#

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

Contains methods for create a keyword related to an ICFD analysis.

timestep = 0#
termination = 1e+28#
set_termination(termination_time)#

Set the total time of the simulation for the fluid problem.

Parameters:
termination_timefloat

Total time of the simulation for the fluid problem.

create_control_general(atype=0, mtype=0, dvcl=0, rdvcl=0)#

Specify the type of CFD analysis.

Parameters:
atypeint, optional

Analysis type. The default is 0.

mtypeint, optional

Solving method type. The default is 0.

dvclint, optional

Flag for divergence cleaning. The default is 0.

rdvclint, optional

Flag for remeshing divergence cleaning. The default is 0.

Returns:
bool

True when successful, False when failed.

create_control_output(msgl)#

Modify default values for screen and file outputs related to the fluid solver only.

Parameters:
msglint

Message level.

Returns:
bool

True when successful, False when failed.

create_control_turbulence(tmod)#

Modify the default values for the turbulence model.

Parameters:
tmodint

Turbulence model to use.

Returns:
bool

True when successful, False when failed.

create_control_dem_coupling(ctype=0, bt=0, dt=1e+28, sf=1)#

Activate coupling between the ICFD and DEM solvers.

Parameters:
ctypeint, optional

Coupling direction to the solver. The default is 0.

btfloat, optional

Birth time for the DEM coupling. The default is 0.

dtfloat, optional

Death time for the DEM coupling. The default is 1e28.

sffloat, optional

Scale factor to apply to the force transmitted by the fluid to the structure. The default is 1.

Returns:
bool

True when successful, False when failed.

create_section_icfd(sid)#

Define a section for the ICFD solver.

Parameters:
sidint

Section ID.

Returns:
bool

True when successful, False when failed.

create_part_icfd(pid, secid, mid)#

Define parts for the ICFD solver.

Parameters:
pidint

Part ID for fluid surfaces.

secidint

Section ID defined with the \*ICFD_SECTION card.

midint

Material ID defined with the \*ICFD_MAT card.

Returns:
bool

True when successful, False when failed.

create_solver_tol_mmov(atol=1e-08, rtol=1e-08)#

Change the default tolerance values for the mesh movement algorithm.

Parameters:
atolfloat, optional

Absolute convergence criteria. The default is 1e-8.

rtolfloat, optional

Relative convergence criteria. The default is 1e-8.

Returns:
bool

True when successful, False when failed.

set_initial(velocity=Velocity(0, 0, 0), temperature=0, pressure=0)#

Assign the initial condition to all nodes at once.

Parameters:
velocityVelocity, optional

Initial velocity. The default is (0, 0, 0),

temperaturefloat, optional

Initial temperature. The default is 0.

pressurefloat, optional

Initial pressure. The default is 0.

set_imposed_move(vx=None, vy=None, vz=None)#

Impose a velocity on the whole volume mesh.

Parameters:
vx
vy
save_file()#

Save keyword files.