Class SPHFluidSettings


  • public class SPHFluidSettings
    extends CFacade
    Generated facet for DNA struct type 'SPHFluidSettings'.

    Class Documentation

    • Field Detail

      • __DNA__SDNA_INDEX

        public static final int __DNA__SDNA_INDEX
        This is the sdna index of the struct SPHFluidSettings.

        It is required when allocating a new block to store data for SPHFluidSettings.

        See Also:
        StructDNA, BlockTable, Constant Field Values
      • __DNA__FIELD__radius

        public static final long[] __DNA__FIELD__radius
        Field descriptor (offset) for struct member 'radius'.

        Field Documentation

        Blender Source Code

        Particle Fluid

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         SPHFluidSettings sphfluidsettings = ...;
         CPointer<Object> p = sphfluidsettings.__dna__addressof(SPHFluidSettings.__DNA__FIELD__radius);
         CPointer<Float> p_radius = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'radius'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__spring_k

        public static final long[] __DNA__FIELD__spring_k
        Field descriptor (offset) for struct member 'spring_k'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         SPHFluidSettings sphfluidsettings = ...;
         CPointer<Object> p = sphfluidsettings.__dna__addressof(SPHFluidSettings.__DNA__FIELD__spring_k);
         CPointer<Float> p_spring_k = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'spring_k'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__rest_length

        public static final long[] __DNA__FIELD__rest_length
        Field descriptor (offset) for struct member 'rest_length'.

        Field Documentation

        Blender Python API

        Spring rest length (factor of particle radius)

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         SPHFluidSettings sphfluidsettings = ...;
         CPointer<Object> p = sphfluidsettings.__dna__addressof(SPHFluidSettings.__DNA__FIELD__rest_length);
         CPointer<Float> p_rest_length = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'rest_length'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__plasticity_constant

        public static final long[] __DNA__FIELD__plasticity_constant
        Field descriptor (offset) for struct member 'plasticity_constant'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         SPHFluidSettings sphfluidsettings = ...;
         CPointer<Object> p = sphfluidsettings.__dna__addressof(SPHFluidSettings.__DNA__FIELD__plasticity_constant);
         CPointer<Float> p_plasticity_constant = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'plasticity_constant'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__yield_ratio

        public static final long[] __DNA__FIELD__yield_ratio
        Field descriptor (offset) for struct member 'yield_ratio'.

        Field Documentation

        Blender Python API

        How much the spring has to be stretched/compressed in order to change it's rest length

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         SPHFluidSettings sphfluidsettings = ...;
         CPointer<Object> p = sphfluidsettings.__dna__addressof(SPHFluidSettings.__DNA__FIELD__yield_ratio);
         CPointer<Float> p_yield_ratio = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'yield_ratio'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__plasticity_balance

        public static final long[] __DNA__FIELD__plasticity_balance
        Field descriptor (offset) for struct member 'plasticity_balance'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         SPHFluidSettings sphfluidsettings = ...;
         CPointer<Object> p = sphfluidsettings.__dna__addressof(SPHFluidSettings.__DNA__FIELD__plasticity_balance);
         CPointer<Float> p_plasticity_balance = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'plasticity_balance'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__yield_balance

        public static final long[] __DNA__FIELD__yield_balance
        Field descriptor (offset) for struct member 'yield_balance'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         SPHFluidSettings sphfluidsettings = ...;
         CPointer<Object> p = sphfluidsettings.__dna__addressof(SPHFluidSettings.__DNA__FIELD__yield_balance);
         CPointer<Float> p_yield_balance = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'yield_balance'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__viscosity_omega

        public static final long[] __DNA__FIELD__viscosity_omega
        Field descriptor (offset) for struct member 'viscosity_omega'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         SPHFluidSettings sphfluidsettings = ...;
         CPointer<Object> p = sphfluidsettings.__dna__addressof(SPHFluidSettings.__DNA__FIELD__viscosity_omega);
         CPointer<Float> p_viscosity_omega = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'viscosity_omega'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__viscosity_beta

        public static final long[] __DNA__FIELD__viscosity_beta
        Field descriptor (offset) for struct member 'viscosity_beta'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         SPHFluidSettings sphfluidsettings = ...;
         CPointer<Object> p = sphfluidsettings.__dna__addressof(SPHFluidSettings.__DNA__FIELD__viscosity_beta);
         CPointer<Float> p_viscosity_beta = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'viscosity_beta'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__stiffness_k

        public static final long[] __DNA__FIELD__stiffness_k
        Field descriptor (offset) for struct member 'stiffness_k'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         SPHFluidSettings sphfluidsettings = ...;
         CPointer<Object> p = sphfluidsettings.__dna__addressof(SPHFluidSettings.__DNA__FIELD__stiffness_k);
         CPointer<Float> p_stiffness_k = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'stiffness_k'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__stiffness_knear

        public static final long[] __DNA__FIELD__stiffness_knear
        Field descriptor (offset) for struct member 'stiffness_knear'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         SPHFluidSettings sphfluidsettings = ...;
         CPointer<Object> p = sphfluidsettings.__dna__addressof(SPHFluidSettings.__DNA__FIELD__stiffness_knear);
         CPointer<Float> p_stiffness_knear = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'stiffness_knear'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__rest_density

        public static final long[] __DNA__FIELD__rest_density
        Field descriptor (offset) for struct member 'rest_density'.

        Field Documentation

        Blender Python API

        Fluid rest density

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         SPHFluidSettings sphfluidsettings = ...;
         CPointer<Object> p = sphfluidsettings.__dna__addressof(SPHFluidSettings.__DNA__FIELD__rest_density);
         CPointer<Float> p_rest_density = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'rest_density'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__buoyancy

        public static final long[] __DNA__FIELD__buoyancy
        Field descriptor (offset) for struct member 'buoyancy'.

        Field Documentation

        Blender Python API

        Artificial buoyancy force in negative gravity direction based on pressure differences inside the fluid

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         SPHFluidSettings sphfluidsettings = ...;
         CPointer<Object> p = sphfluidsettings.__dna__addressof(SPHFluidSettings.__DNA__FIELD__buoyancy);
         CPointer<Float> p_buoyancy = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'buoyancy'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__flag

        public static final long[] __DNA__FIELD__flag
        Field descriptor (offset) for struct member 'flag'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         SPHFluidSettings sphfluidsettings = ...;
         CPointer<Object> p = sphfluidsettings.__dna__addressof(SPHFluidSettings.__DNA__FIELD__flag);
         CPointer<Integer> p_flag = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'flag'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__spring_frames

        public static final long[] __DNA__FIELD__spring_frames
        Field descriptor (offset) for struct member 'spring_frames'.

        Field Documentation

        Blender Python API

        Create springs for this number of frames since particles birth (0 is always)

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         SPHFluidSettings sphfluidsettings = ...;
         CPointer<Object> p = sphfluidsettings.__dna__addressof(SPHFluidSettings.__DNA__FIELD__spring_frames);
         CPointer<Integer> p_spring_frames = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'spring_frames'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__solver

        public static final long[] __DNA__FIELD__solver
        Field descriptor (offset) for struct member 'solver'.

        Field Documentation

        Blender Python API

        The code used to calculate internal forces on particles

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         SPHFluidSettings sphfluidsettings = ...;
         CPointer<Object> p = sphfluidsettings.__dna__addressof(SPHFluidSettings.__DNA__FIELD__solver);
         CPointer<Short> p_solver = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'solver'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD___pad

        public static final long[] __DNA__FIELD___pad
        Field descriptor (offset) for struct member '_pad'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         SPHFluidSettings sphfluidsettings = ...;
         CPointer<Object> p = sphfluidsettings.__dna__addressof(SPHFluidSettings.__DNA__FIELD___pad);
         CPointer<CArrayFacade<Byte>> p__pad = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

        • Field: '_pad'
        • Signature: 'char[6]'
        • Actual Size (32bit/64bit): 6/6
    • Constructor Detail

      • SPHFluidSettings

        public SPHFluidSettings​(long __address,
                                Block __block,
                                BlockTable __blockTable)
    • Method Detail

      • getRadius

        public float getRadius()
                        throws java.io.IOException
        Get method for struct member 'radius'.

        Field Documentation

        Blender Source Code

        Particle Fluid

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__radius
      • setRadius

        public void setRadius​(float radius)
                       throws java.io.IOException
        Set method for struct member 'radius'.

        Field Documentation

        Blender Source Code

        Particle Fluid

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__radius
      • getSpring_k

        public float getSpring_k()
                          throws java.io.IOException
        Get method for struct member 'spring_k'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__spring_k
      • setSpring_k

        public void setSpring_k​(float spring_k)
                         throws java.io.IOException
        Set method for struct member 'spring_k'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__spring_k
      • getRest_length

        public float getRest_length()
                             throws java.io.IOException
        Get method for struct member 'rest_length'.

        Field Documentation

        Blender Python API

        Spring rest length (factor of particle radius)
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__rest_length
      • setRest_length

        public void setRest_length​(float rest_length)
                            throws java.io.IOException
        Set method for struct member 'rest_length'.

        Field Documentation

        Blender Python API

        Spring rest length (factor of particle radius)
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__rest_length
      • getPlasticity_constant

        public float getPlasticity_constant()
                                     throws java.io.IOException
        Get method for struct member 'plasticity_constant'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__plasticity_constant
      • setPlasticity_constant

        public void setPlasticity_constant​(float plasticity_constant)
                                    throws java.io.IOException
        Set method for struct member 'plasticity_constant'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__plasticity_constant
      • getYield_ratio

        public float getYield_ratio()
                             throws java.io.IOException
        Get method for struct member 'yield_ratio'.

        Field Documentation

        Blender Python API

        How much the spring has to be stretched/compressed in order to change it's rest length
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__yield_ratio
      • setYield_ratio

        public void setYield_ratio​(float yield_ratio)
                            throws java.io.IOException
        Set method for struct member 'yield_ratio'.

        Field Documentation

        Blender Python API

        How much the spring has to be stretched/compressed in order to change it's rest length
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__yield_ratio
      • getPlasticity_balance

        public float getPlasticity_balance()
                                    throws java.io.IOException
        Get method for struct member 'plasticity_balance'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__plasticity_balance
      • setPlasticity_balance

        public void setPlasticity_balance​(float plasticity_balance)
                                   throws java.io.IOException
        Set method for struct member 'plasticity_balance'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__plasticity_balance
      • getYield_balance

        public float getYield_balance()
                               throws java.io.IOException
        Get method for struct member 'yield_balance'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__yield_balance
      • setYield_balance

        public void setYield_balance​(float yield_balance)
                              throws java.io.IOException
        Set method for struct member 'yield_balance'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__yield_balance
      • getViscosity_omega

        public float getViscosity_omega()
                                 throws java.io.IOException
        Get method for struct member 'viscosity_omega'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__viscosity_omega
      • setViscosity_omega

        public void setViscosity_omega​(float viscosity_omega)
                                throws java.io.IOException
        Set method for struct member 'viscosity_omega'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__viscosity_omega
      • getViscosity_beta

        public float getViscosity_beta()
                                throws java.io.IOException
        Get method for struct member 'viscosity_beta'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__viscosity_beta
      • setViscosity_beta

        public void setViscosity_beta​(float viscosity_beta)
                               throws java.io.IOException
        Set method for struct member 'viscosity_beta'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__viscosity_beta
      • getStiffness_k

        public float getStiffness_k()
                             throws java.io.IOException
        Get method for struct member 'stiffness_k'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__stiffness_k
      • setStiffness_k

        public void setStiffness_k​(float stiffness_k)
                            throws java.io.IOException
        Set method for struct member 'stiffness_k'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__stiffness_k
      • getStiffness_knear

        public float getStiffness_knear()
                                 throws java.io.IOException
        Get method for struct member 'stiffness_knear'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__stiffness_knear
      • setStiffness_knear

        public void setStiffness_knear​(float stiffness_knear)
                                throws java.io.IOException
        Set method for struct member 'stiffness_knear'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__stiffness_knear
      • getRest_density

        public float getRest_density()
                              throws java.io.IOException
        Get method for struct member 'rest_density'.

        Field Documentation

        Blender Python API

        Fluid rest density
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__rest_density
      • setRest_density

        public void setRest_density​(float rest_density)
                             throws java.io.IOException
        Set method for struct member 'rest_density'.

        Field Documentation

        Blender Python API

        Fluid rest density
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__rest_density
      • getBuoyancy

        public float getBuoyancy()
                          throws java.io.IOException
        Get method for struct member 'buoyancy'.

        Field Documentation

        Blender Python API

        Artificial buoyancy force in negative gravity direction based on pressure differences inside the fluid
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__buoyancy
      • setBuoyancy

        public void setBuoyancy​(float buoyancy)
                         throws java.io.IOException
        Set method for struct member 'buoyancy'.

        Field Documentation

        Blender Python API

        Artificial buoyancy force in negative gravity direction based on pressure differences inside the fluid
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__buoyancy
      • getFlag

        public int getFlag()
                    throws java.io.IOException
        Get method for struct member 'flag'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag
      • setFlag

        public void setFlag​(int flag)
                     throws java.io.IOException
        Set method for struct member 'flag'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag
      • getSpring_frames

        public int getSpring_frames()
                             throws java.io.IOException
        Get method for struct member 'spring_frames'.

        Field Documentation

        Blender Python API

        Create springs for this number of frames since particles birth (0 is always)
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__spring_frames
      • setSpring_frames

        public void setSpring_frames​(int spring_frames)
                              throws java.io.IOException
        Set method for struct member 'spring_frames'.

        Field Documentation

        Blender Python API

        Create springs for this number of frames since particles birth (0 is always)
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__spring_frames
      • getSolver

        public short getSolver()
                        throws java.io.IOException
        Get method for struct member 'solver'.

        Field Documentation

        Blender Python API

        The code used to calculate internal forces on particles
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__solver
      • setSolver

        public void setSolver​(short solver)
                       throws java.io.IOException
        Set method for struct member 'solver'.

        Field Documentation

        Blender Python API

        The code used to calculate internal forces on particles
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__solver
      • get_pad

        public CArrayFacade<java.lang.Byte> get_pad()
                                             throws java.io.IOException
        Get method for struct member '_pad'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad
      • set_pad

        public void set_pad​(CArrayFacade<java.lang.Byte> _pad)
                     throws java.io.IOException
        Set method for struct member '_pad'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad