KratosMultiphysics / Kratos

Kratos Multiphysics (A.K.A Kratos) is a framework for building parallel multi-disciplinary simulation software. Modularity, extensibility and HPC are the main objectives. Kratos has BSD license and is written in C++ with extensive Python interface.
https://kratosmultiphysics.github.io/Kratos/
Other
1.02k stars 245 forks source link

Two Boundary Conditions for one Surface #6832

Open ElGarno opened 4 years ago

ElGarno commented 4 years ago

What is the general way to specify two BC' s for one surface in Kratos? I want to define an inner pressure for a channel and also define that channel as Surface to be deformed. Is there any file, where there has been an analogous task?

Also how does the Kratos setup look like in the belonging mdpa-file?

loumalouomega commented 4 years ago

In order to do that you need to set values directly in the conditions and create two independent conditions with the same geometry. If the value is set on nodes it will be override between them

loumalouomega commented 4 years ago

Which condition are you using?

ElGarno commented 4 years ago

First of all thanks for your answer! I am using a Pressure load as well as a deformation surface (see attached). In addition I would like to know how the pressure condition is named in the json file (like in the attached picture but for pressure) and how it is named in the mesh (mdpa) file. BC_json BC_Gehaeuse

philbucher commented 4 years ago

those are the names in the mdpa (depending on your geometry) https://github.com/KratosMultiphysics/Kratos/blob/master/applications/StructuralMechanicsApplication/structural_mechanics_application.cpp#L673-L678

And here you can find what variables are considered: https://github.com/KratosMultiphysics/Kratos/blob/master/applications/StructuralMechanicsApplication/custom_conditions/surface_load_condition_3d.cpp#L242-L270

note that values can come from nodes (FastGetSolutionStepValue) or from the condition itself (GetValue) this has an impact on which process you need to use