This is an old revision of the document!
DualSPHysics & DesignSPHysics common concepts
In this section you will find a series of concepts and explanations for several DualSPHysics and DesignSPHysics concepts.
This section is aimed to new users of each the GUI and the solver package, and covers the usage of things like MK values or order of object creation.
MK Values (MKBound and MKFluid)
MK values are values associated with each object (or group of objects), similar as a 'tag'.
MK values serve this purposes, among others:
Organizing and visualizing: Assigning different MK's to different objects makes it easy to organize them and visualizating them in other modes in external software like ParaView.
Group objects to apply properties: Some properties like floating apply to an MK, not to an object.
Some use cases are:
Easily viewing the mixing of 2 fluids: Setting different MK to different fluids can help to see how each fluid is situated, viewing the VTK exported particles colored by MK. This way, each fluid would have each color, making it easy to differenciate.
Applying the same properties to several objects: Imagine you want 100 different boxes, but all of them with the same float properties. Setting the same MK to all of them ensures the float properties apply to all of them equally, so you don't have to redefine the float property values for each object. This also applies to movement for boundaries or initial velocity for fluids.
Object order in a case
Defining objects in a particular order is important in the solver.
In DesignSPHysics you can change the order of object creation with the table placed in the main dock.
Order in objects is useful to slicing and substitution of different objects. Lets put a visual example:
We want to generate the following case.
In this case the order of the particles is