Edit me

The python process AssignInitialVelocityToMaterialPointProcess assigns a vector value to the variable MP_VELOCITY of all the elements of a given model part before the execution of the solution loop.

Parameters & Defaults

{
    "kratos_module" : "KratosMultiphysics.MPMApplication",
    "python_module" : "assign_initial_velocity_to_material_point_process",
    "Parameters"    : {
        "model_part_name" : "PLEASE_SPECIFY_MODEL_PART_NAME",
        "modulus"         : 1.0,
        "direction"       : [0.0, 0.0, 0.0]
    }
}
model_part_name

String identifying the name of the target ModelPart.

modulus

Number identifying the modulus of the imposed velocity.

direction

Three-component vector identifying the direction of the applied velocity.

Source Code

MPMApplication/python_scripts/assign_initial_velocity_to_material_point_process.py