Skip to main content

utility:change shell layers

Version: 0.0.0

Description

Extract the requested shell layers from the input fields. If the fields contain only one layer and the permissive configuration input is set to true then it returns the input fields. If permissive configuration input is set to false, any change which should not be permitted won't be achieved and the corresponding field in the output will be empty. If permissive configuration input is set to true (default), carefully check the result.

Inputs

InputNameExpected type(s)Description
Pin 0
Required
fields_containerfields_container, field
Pin 1
Required
e_shell_layerint32, enum dataProcessing::EShellLayers0: Top, 1: Bottom, 2: TopBottom, 3: Mid, 4: TopBottomMid.
Pin 2meshabstract_meshed_region, meshes_containerMesh support of the input fields_container, in case it does not have one defined. If the fields_container contains mixed shell/solid results, the mesh is required (either by connecting this pin or in the support).
Pin 26mergeboolFor fields with mixed shell layers (solid/shell elements with heterogeneous shell layers), group all of them in the same field (false by default).

Outputs

OutputNameExpected type(s)Description
Pin 0fields_containerfields_container, field

Configurations

NameExpected type(s)Default valueDescription
mutexboolfalseIf this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads.
permissivebooltrueIf permissive is set to false, the operator run will ensure the 'change shell layers' operation is allowed (for example, if asking mid layer for a field defined on top and bottom layers, the computed field will be empty). If permissive is set to true, the operator run will be done in a permissive way (no check). Default is true.

Scripting

Category: utility

Plugin: core

Scripting name: change_shell_layers

Full name: utility.change_shell_layers

Internal name: change_shellLayers

License: None

Changelog

  • Version 0.0.0: Initial release.