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.03k stars 245 forks source link

[Fluid] Error applying hydrostatic contribution on Outlet #11690

Open jginternational opened 1 year ago

jginternational commented 1 year ago

Description Setting Outlet hydrostatic_outlet : true causes:

  File "C:\Program Files\GiD\GiD 16.1.6d\scripts\tohil\python\lib\site-packages\KratosMultiphysics\FluidDynamicsApplication\apply_outlet_process.py", line 158, in _AddOutletHydrostaticComponent
    rho = node.GetSolutionStepValue(KratosMultiphysics.DENSITY, 0)                                      # Nodal density value
RuntimeError: Error: This container only can store the variables specified in its variables list. The variables list doesn't have this variable:DENSITY variable #1455848192DENSITY variable #1455848192 #1455848192

Scope Running Fluid 3D or 2D case

To Reproduce Any fluid case in the GiD problemtype, no matter the element you choose

@KratosMultiphysics/fluid-dynamics @rubenzorrilla

rubenzorrilla commented 1 year ago

We should retrieve the density from properties and eventually interpolate it. Thanks for reporting.