user: Show practical ways to work with FluidDomainSettings(bpy_struct) in a Blender add-on or script – include code.

assistant: , default 1

    resolution_max
    :   Resolution used for the fluid domain. Value corresponds to the longest domain side (resolution for other domain sides is calculated automatically).

        Type:
        :   int in [6, 10000], default 32

    show_gridlines
    :   Show gridlines

        Type:
        :   boolean, default False

    show_velocity
    :   Visualize vector fields

        Type:
        :   boolean, default False

    simulation_method
    :   Change the underlying simulation method

        - `FLIP`
          FLIP – Use FLIP as the simulation method (more splashy behavior).
        - `APIC`
          APIC – Use APIC as the simulation method (more energetic and stable behavior).

        Type:
        :   enum in [`'FLIP'`, `'APIC'`], default `'FLIP'`

    slice_axis
    :   - `AUTO`
          Auto – Adjust slice direction according to the view direction.
        - `X`
          X – Slice along the X axis.
        - `Y`
          Y – Slice along the Y axis.
        - `Z`
          Z – Slice along the Z axis.

        Type:
        :   enum in [`'AUTO'`, `'X'`, `'Y'`, `'Z'`], default `'AUTO'`

    slice_depth
    :   Position of the slice

        Type:
        :   float in [0, 1], default 0.5

    slice_per_voxel
    :   How many slices per voxel should be generated

        Type:
        :   float in [0, 100], default 5.0

    sndparticle_boundary
    :   How particles that left the domain are treated

        - `DELETE`
          Delete – Delete secondary particles that are inside obstacles or left the domain.
        - `PUSHOUT`
          Push Out – Push secondary particles that left the domain back into the domain.

        Type:
        :   enum in [`'DELETE'`, `'PUSHOUT'`], default `'DELETE'`

    sndparticle_bubble_buoyancy
    :   Amount of buoyancy force that rises bubbles (high value results in bubble movement mainly upwards)

        Type:
        :   float in [0, 100], default 0.5

    sndparticle_bubble_drag
    :   Amount of drag force that moves bubbles along with the fluid (high value results in bubble movement mainly along with the fluid)

        Type:
        :   float in [0, 100], default 0.6

    sndparticle_combined_export
    :   Determines which particle systems are created from secondary particles

        - `OFF`
          Off – Create a separate particle system for every secondary particle type.
        - `SPRAY_FOAM`
          Spray + Foam – Spray and foam particles are saved in the same particle system.
        - `SPRAY_BUBBLES`
          Spray + Bubbles – Spray and bubble particles are saved in the same particle system.
        - `FOAM_BUBBLES`
          Foam + Bubbles – Foam and bubbles particles are saved in the same particle system.
        - `SPRAY_FOAM_BUBBLES`
          Spray + Foam + Bubbles – Create one particle system that contains all three secondary particle types.

        Type:
        :   enum in [`'OFF'`, `'SPRAY_FOAM'`, `'SPRAY_BUBBLES'`, `'FOAM_BUBBLES'`, `'SPRAY_FOAM_BUBBLES'`], default `'OFF'`

    sndparticle_life_max
    :   Highest possible particle lifetime

        Type:
        :   float in [0, 10000], default 25.0

    sndparticle_life_min
    :   Lowest possible particle lifetime

        Type:
        :   float in [0, 10000], default 10.0

    sndparticle_potential_max_energy
    :   Upper clamping threshold that indicates the fluid speed where cells no longer emit more particles (higher value results in generally less particles)

        Type:
        :   float in [0, 1000], default 5.0

    sndparticle_potential_max_trappedair
    :   Upper clamping threshold for marking fluid cells where air is trapped (higher value results in less marked cells)

        Type:
        :   float in [0, 1000], default 20.0

    sndparticle_potential_max_wavecrest
    :   Upper clamping threshold for marking fluid cells as wave crests (higher value results in less marked cells)

        Type:
        :   float in [0, 1000], default 8.0

    sndparticle_potential_min_energy
    :   Lower clamping threshold that indicates the fluid speed where cells start to emit particles (lower values result in generally more particles)

        Type:
        :   float in [0, 1000], default 1.0

    sndparticle_potential_min_trappedair
    :   Lower clamping threshold for marking fluid cells where air is trapped (lower value results in more marked cells)

        Type:
        :   float in [0, 1000], default 5.0

    sndparticle_potential_min_wavecrest
    :   Lower clamping threshold for marking fluid cells as wave crests (lower value results in more marked cells)

        Type:
        :   float in [0, 1000], default 2.0

    sndparticle_potential_radius
    :   Radius to compute potential for each cell (higher values are slower but create smoother potential grids)

        Type:
        :   int in [1, 4], default 2

    sndparticle_sampling_trappedair
    :   Maximum number of particles generated per trapped air cell per frame

        Type:
        :   int in [0, 10000], default 40

    sndparticle_sampling_wavecrest
    :   Maximum number of particles generated per wave crest cell per frame

        Type:
        :   int in [0, 10000], default 200

    sndparticle_update_radius
    :   Radius to compute position update for each particle (higher values are slower but particles move less chaotic)

        Type:
        :   int in [1, 4], default 2

    start_point
    :   Start point

        Type:
        :   [`mathutils.Vector`](mathutils.html#mathutils.Vector "mathutils.Vector") of 3 items in [-inf, inf], default (0.0, 0.0, 0.0), (readonly)

    surface_tension
    :   Surface tension of liquid (higher value results in greater hydrophobic behavior)

        Type:
        :   float in [0, 100], default 0.0

    sys_particle_maximum
    :   Maximum number of fluid particles that are allowed in this simulation

        Type:
        :   int in [0, inf], default 0

    temperature_grid
    :   Smoke temperature grid, range 0 to 1 represents 0 to 1000K

        Type:
        :   float array of 32 items in [-inf, inf], default (0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0), (readonly)

    time_scale
    :   Adjust simulation speed

        Type:
        :   float in [0.0001, 10], default 1.0

    timesteps_max
    :   Maximum number of simulation steps to perform for one frame

        Type:
        :   int in [1, 100], default 4

    timesteps_min
    :   Minimum number of simulation steps to perform for one frame

        Type:
        :   int in [1, 100], default 1

    use_adaptive_domain
    :   Adapt simulation resolution and size to fluid

        Type:
        :   boolean, default False

    use_adaptive_timesteps
    :   Automatically decide when to perform multiple simulation steps per frame

        Type:
        :   boolean, default True

    use_bubble_particles
    :   Create bubble particle system

        Type:
        :   boolean, default False

    use_collision_border_back
    :   Enable collisions with back domain border

        Type:
        :   boolean, default False

    use_collision_border_bottom
    :   Enable collisions with bottom domain border

        Type:
        :   boolean, default False

    use_collision_border_front
    :   Enable collisions with front domain border

        Type:
        :   boolean, default False

    use_collision_border_left
    :   Enable collisions with left domain border

        Type:
        :   boolean, default False

    use_collision_border_right
    :   Enable collisions with right domain border

        Type:
        :   boolean, default False

    use_collision_border_top
    :   Enable collisions with top domain border

        Type:
        :   boolean, default False

    use_color_ramp
    :   Render a simulation field while mapping its voxels values to the colors of a ramp or using a predefined color code

        Type:
        :   boolean, default False

    use_diffusion
    :   Enable fluid diffusion settings (e.g. viscosity, surface tension)

        Type:
        :   boolean, default False

    use_dissolve_smoke
    :   Let smoke disappear over time

        Type:
        :   boolean, default False

    use_dissolve_smoke_log
    :   Dissolve smoke in a logarithmic fashion. Dissolves quickly at first, but lingers longer.

        Type:
        :   boolean, default True

    use_flip_particles
    :   Create liquid particle system

        Type:
        :   boolean, default False

    use_foam_particles
    :   Create foam particle system

        Type:
        :   boolean, default False

    use_fractions
    :   Fractional obstacles improve and smoothen the fluid-obstacle boundary

        Type:
        :   boolean, default False

    use_guide
    :   Enable fluid guiding

        Type:
        :   boolean, default False

    use_mesh
    :   Enable fluid mesh (using amplification)

        Type:
        :   boolean, default True

    use_noise
    :   Enable fluid noise (using amplification)

        Type:
        :   boolean, default False

    use_slice
    :   Perform a single slice of the domain object

        Type:
        :   boolean, default False

    use_speed_vectors
    :   Caches velocities of mesh vertices. These will be used (automatically) when rendering with motion blur enabled.

        Type:
        :   boolean, default False

    use_spray_particles
    :   Create spray particle system

        Type:
        :   boolean, default False

    use_tracer_particles
    :   Create tracer particle system

        Type:
        :   boolean, default False

    use_viscosity
    :   Simulate fluids with high viscosity using a special solver

        Type:
        :   boolean, default False

    vector_display_type
    :   - `NEEDLE`
          Needle – Display vectors as needles.
        - `STREAMLINE`
          Streamlines – Display vectors as streamlines.
        - `MAC`
          MAC Grid – Display vector field as MAC grid.

        Type:
        :   enum in [`'NEEDLE'`, `'STREAMLINE'`, `'MAC'`], default `'NEEDLE'`

    vector_field
    :   Vector field to be represented by the display vectors

        - `FLUID_VELOCITY`
          Fluid Velocity – Velocity field of the fluid domain.
        - `GUIDE_VELOCITY`
          Guide Velocity – Guide velocity field of the fluid domain.
        - `FORCE`
          Force – Force field of the fluid domain.

        Type:
        :   enum in [`'FLUID_VELOCITY'`, `'GUIDE_VELOCITY'`, `'FORCE'`], default `'FLUID_VELOCITY'`

    vector_scale
    :   Multiplier for scaling the vectors

        Type:
        :   float in [0, 1000], default 1.0

    vector_scale_with_magnitude
    :   Scale vectors with their magnitudes

        Type:
        :   boolean, default False

    vector_show_mac_x
    :   Show X-component of MAC Grid

        Type:
        :   boolean, default True

    vector_show_mac_y
    :   Show Y-component of MAC Grid

        Type:
        :   boolean, default True

    vector_show_mac_z
    :   Show Z-component of MAC Grid

        Type:
        :   boolean, default True

    velocity_grid
    :   Smoke velocity grid

        Type:
        :   float array of 32 items in [-inf, inf], default (0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0), (readonly)

    velocity_scale
    :   Factor to control the amount of motion blur

        Type:
        :   float in [0, inf], default 1.0

    viscosity_base
    :   Viscosity setting: value that is multiplied by 10 to the power of (exponent\*-1)

        Type:
        :   float in [0, 10], default 1.0

    viscosity_exponent
    :   Negative exponent for the viscosity value (to simplify entering small values e.g. 5\*10^-6)

        Type:
        :   int in [0, 10], default 6

    viscosity_value
    :   Viscosity of liquid (higher values result in more viscous fluids, a value of 0 will still apply some viscosity)

        Type:
        :   float in [0, 10], default 0.05

    vorticity
    :   Amount of turbulence and rotation in smoke

        Type:
        :   float in [0, 4], default 0.0

    *classmethod* bl_rna_get_subclass(*id*, *default=None*, */*)
    :   Parameters:
        :   **id** (*str*) – The RNA type identifier.

        Returns:
        :   The RNA type or default when not found.

        Return type:
        :   [`bpy.types.Struct`](bpy.types.Struct.html#bpy.types.Struct "bpy.types.Struct") subclass

    *classmethod* bl_rna_get_subclass_py(*id*, *default=None*, */*)
    :   Parameters:
        :   **id** (*str*) – The RNA type identifier.

        Returns:
        :   The class or default when not found.

        Return type:
        :   type