ansys.dyna.core.pre.dynaicfd#
Module for creating an ICFD (incompressible computational fluid dynamics) DYNA input deck.
Classes#
Contains methods for create a keyword related to an ICFD analysis. |
|
Generic enumeration. |
|
Generic enumeration. |
|
Generic enumeration. |
|
Generic enumeration. |
|
Generic enumeration. |
|
Activates an ICFD analysis and defines associated control parameters. |
|
Generic enumeration. |
|
Defines physical properties for the fluid material. |
|
Generic enumeration. |
|
Generic enumeration. |
|
Defines a part for the ICFD solver. |
|
Assigns material properties to the nodes enclosed by surface ICFD parts. |
|
Defines the volume space to mesh. |
Module Contents#
- class ansys.dyna.core.pre.dynaicfd.DynaICFD[source]#
Bases:
ansys.dyna.core.pre.dynabase.DynaBase
Contains methods for create a keyword related to an ICFD analysis.
- set_termination(termination_time)[source]#
Set the total time of the simulation for the fluid problem.
- Parameters:
- termination_time
float
Total time of the simulation for the fluid problem.
- termination_time
- create_control_general(atype=0, mtype=0, dvcl=0, rdvcl=0)[source]#
Specify the type of CFD analysis.
- Parameters:
- Returns:
- bool
True
when successful,False
when failed.
- create_control_output(msgl)[source]#
Modify default values for screen and file outputs related to the fluid solver only.
- create_control_dem_coupling(ctype=0, bt=0, dt=1e+28, sf=1)[source]#
Activate coupling between the ICFD and DEM solvers.
- Parameters:
- ctype
int
,optional
Coupling direction to the solver. The default is
0
.- bt
float
,optional
Birth time for the DEM coupling. The default is
0
.- dt
float
,optional
Death time for the DEM coupling. The default is
1e28
.- sf
float
,optional
Scale factor to apply to the force transmitted by the fluid to the structure. The default is
1
.
- ctype
- Returns:
- bool
True
when successful,False
when failed.
- create_solver_tol_mmov(atol=1e-08, rtol=1e-08)[source]#
Change the default tolerance values for the mesh movement algorithm.
- set_initial(velocity=Velocity(0, 0, 0), temperature=0, pressure=0)[source]#
Assign the initial condition to all nodes at once.
- class ansys.dyna.core.pre.dynaicfd.ICFD_SurfRemeshMethod[source]#
Bases:
ansys.dyna.core.pre.dynabase.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- class ansys.dyna.core.pre.dynaicfd.ICFD_AnalysisType[source]#
Bases:
ansys.dyna.core.pre.dynabase.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- class ansys.dyna.core.pre.dynaicfd.ICFD_MessageLevel[source]#
Bases:
ansys.dyna.core.pre.dynabase.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- class ansys.dyna.core.pre.dynaicfd.ICFD_CouplingForm[source]#
Bases:
ansys.dyna.core.pre.dynabase.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- class ansys.dyna.core.pre.dynaicfd.ICFD_CouplingDirection[source]#
Bases:
ansys.dyna.core.pre.dynabase.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- class ansys.dyna.core.pre.dynaicfd.ICFDAnalysis[source]#
Bases:
ansys.dyna.core.pre.dynabase.BaseObj
Activates an ICFD analysis and defines associated control parameters.
- set_type(analysis_type=ICFD_AnalysisType.TRANSIENT_ANALYSIS)[source]#
Set the type of the CFD analysis.
- Parameters:
- analysis_type
ICFD_AnalysisType
Analysis type. The default is
TRANSIENT_ANALYSIS
.
- analysis_type
- set_output(messagelevel=ICFD_MessageLevel.TIMESTEP_INFORMATION, iteration_interval=0)[source]#
Modify default values for screen and file outputs related to the fluid solver only.
- Parameters:
- messagelevel
ICFD_MessageLevel
,optional
Message level. The default is
TIMESTEP_INFORMATION
.- iteration_interval
int
,optional
Iteration interval to print the output at. The default is
0
.
- messagelevel
- set_fsi(couplingdir=ICFD_CouplingDirection.TWO_WAY_COUPLING)[source]#
Modify default values for the fluid-structure interaction coupling algorithm.
- Parameters:
- couplingdir
ICFD_CouplingDirection
,optional
Coupling direction to the solver. The default is
TWO_WAY_COUPLING
.
- couplingdir
- set_steady_state(max_iteration=1000000.0, momentum_tol_limit=0.001, pressure_tol_limit=0.001, temperature_tol_limit=0.001, velocity_relax_param=0.3, pressure_relax_param=0.7)[source]#
Set convergence options for the steady state solver.
- Parameters:
- max_iteration
int
,optional
Maximum number of iterations to reach convergence. The default is
1000000.0
.- momentum_tol_limit
float
,optional
Tolerance limits for the momentum equations. The default is
0.001
.- pressure_tol_limit
float
,optional
Tolerance limits for the pressure equations. The default is
0.001
.- temperature_tol_limit
float
,optional
Tolerance limits for the temperature equations. The default is
0.001
.- velocity_relax_param
float
,optional
Relaxation parameters for the velocity. The default is
0.3
.- pressure_relax_param
float
,optional
Relaxation parameters for the pressure. The default is
0.7
.
- max_iteration
- set_timestep(timestep=0)[source]#
Set the time step for the fluid problem.
- Parameters:
- dt
float
,optional
Time step for the fluid problem. The default is
0
.
- dt
- set_volume_mesh(mesh_growth_scale_factor=1.41)[source]#
Modify the default value for automatic volume mesh generation.
- Parameters:
- mesh_growth_scale_factor
float
,optional
Maximum mesh size that the volume mesher is allowed to use when generating the volume mesh. The default is
1.41
.
- mesh_growth_scale_factor
- set_mesh_adaptivity(min_mesh_size=0, max_mesh_size=0, max_perceptual_error=0, num_iteration=0)[source]#
Activate the adaptive mesh refinement feature.
- Parameters:
- min_mesh_size
float
,optional
Minimum mesh size for the mesh generator. The default is
0
.- max_mesh_size
float
,optional
Maximum mesh size. The default is
0
.- max_perceptual_error
float
,optional
Maximum perceptual error allowed in the whole domain. The default is
0
.- num_iteration
int
,optional
Number of iterations before a forced remeshing. The default is
0
.
- min_mesh_size
- set_surface_mesh(remesh_method=ICFD_SurfRemeshMethod.LAPLACIAN_SMOOTHING)[source]#
Enable automatic surface remeshing.
- Parameters:
- remesh_method
ICFD_SurfRemeshMethod
,optional
Whether to perform a surface remeshing. The default is
LAPLACIAN_SMOOTHING
.
- remesh_method
- set_coupling_dem(coupling_type=0, birth_time=0, death_time=1e+28, scale_factor=1, formulation=ICFD_CouplingForm.FORCE_BASED_ON_VELOCITY_DRAG_VALUE)[source]#
Activate coupling between the ICFD and DEM solvers.
- Parameters:
- coupling_type
int
,optional
Coupling direction to the solver. The default is
0
.- birth_time
float
,optional
Birth time for the DEM coupling. The default is
0
.- death_time
float
,optional
Death time for the DEM coupling. The default is
1e+28
.- scale_factor
float
,optional
Scale factor applied to the force transmitted by the fluid to the structure. The default is
1
.- formulation
int
,optional
Type of formulation to use in the coupling. The default is
FORCE_BASED_ON_VELOCITY_DRAG_VALUE
.
- coupling_type
- class ansys.dyna.core.pre.dynaicfd.Compressible[source]#
Bases:
ansys.dyna.core.pre.dynabase.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- class ansys.dyna.core.pre.dynaicfd.MatICFD(flag=Compressible.FULLY_INCOMPRESSIBLE_FLUID, flow_density=0, dynamic_viscosity=0, heat_capacity=0, thermal_conductivity=0, thermal_expansion_coefficient=0)[source]#
Defines physical properties for the fluid material.
- Parameters:
- flag
int
Flag for chooseing between fully incompressible, slightly compressible, or barotropic flows. The default is
FULLY_INCOMPRESSIBLE_FLUID
. Options are:EQ.0: Vacuum (free surface problems only)
EQ.1: Fully incompressible fluid
- flow_density
float
,optional
Flow density. The default is
0
.- dynamic_viscosity
float
,optional
Dynamic viscosity. The default is
0
.- heat_capacity
- thermal_conductivity
- thremal_expansion_coefficent
- flag
- class ansys.dyna.core.pre.dynaicfd.ICFDDOF[source]#
Bases:
ansys.dyna.core.pre.dynabase.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- class ansys.dyna.core.pre.dynaicfd.Vel[source]#
Bases:
ansys.dyna.core.pre.dynabase.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- class ansys.dyna.core.pre.dynaicfd.ICFDPart(id)[source]#
Defines a part for the ICFD solver.
- set_prescribed_velocity(motion, dof=ICFDDOF.X, velocity_flag=Vel.LINEAR_VELOCITY)[source]#
Impose the fluid velocity on the boundary.
- Parameters:
- dof
int
,optional
Applicable degrees of freedom. The default is
ICFDDOF.X
. Options are:EQ.1: x-degree of freedom
EQ.2: y-degree of freedom
EQ.3: z-degree of freedom
EQ.4: Normal direction degree of freedom
- velocity_flag
int
,optional
Velocity flag. The default is
LINEAR_VELOCITY
. Options are:EQ.1: Linear velocity
EQ.2: Angular velocity
EQ.3: Parabolic velocity profile
EQ.4: Activates synthetic turbulent field on part
- dof
- set_prescribed_pressure(pressure)[source]#
Impose a fluid pressure on the boundary.
- Parameters:
- pressure
Curve
Load curve to describe the pressure value versus time.
- pressure
- set_prescribed_temperature(temperature)[source]#
Impose a fluid temperature on the boundary.
- Parameters:
- temperature
Curve
Load curve to describe the temperature value versus time.
- temperature
- set_fsi()[source]#
Define the fluid surface to consider in contact with the solid surfaces for fluid-structure interaction (FSI) analysis.
- compute_drag_force()[source]#
Enable the computation of drag forces over given surface parts of the model.
- compute_flux()[source]#
Enable the computation of the flow rate and average pressure over given parts of the model.
- compute_temperature()[source]#
Enable the computation of the average temperature and the heat flux over given parts of the model.
- set_boundary_layer(number=3)[source]#
Define a boundary layer mesh as a refinement on the volume mesh.
- Parameters:
- number
int
,optional
Number of elements normal to the surface (in the boundary layer). The default is
3.
- number
- set_boundary_layer_symmetry_condition()[source]#
Specify the part that is to have symmetry conditions for the boundary layer.
- class ansys.dyna.core.pre.dynaicfd.ICFDVolumePart(surfaces)[source]#
Assigns material properties to the nodes enclosed by surface ICFD parts.
- Parameters:
- surfaces
list
List of part IDs for the surface elements that define the volume mesh.
- surfaces
- class ansys.dyna.core.pre.dynaicfd.MeshedVolume(surfaces)[source]#
Bases:
ansys.dyna.core.pre.dynabase.BaseObj
Defines the volume space to mesh.
- Parameters:
- surfaces
list
List of part IDs for the surface elements to use to define the volume.
- surfaces
- embed_shell(embeded)[source]#
Define surfaces that the mesher is to embed inside the volume mesh.
- Parameters:
- embeded
list
List of part IDs for the surface elements.
- embeded
- meshsize_box(size, min_point, max_point)[source]#
Define a local mesh size in specific zones corresponding to given geometrical shapes.
- set_meshsize(surfaces)[source]#
Define the surfaces that the mesher is to use to specify a local mesh size inside the volume.
- Parameters:
- surfaces
list
List of part IDs for the surface elements.
- surfaces