Skip to content

LB cells and slices do not check for valid property-setters #5068

@reinaual

Description

@reinaual

Our LB nodes and slices allow the user to set any value without throwing an error. The getters do throw.

import espressomd
import espressomd.lb


system = espressomd.System(box_l=[3, 3, 3])
system.cell_system.skin = 0.1

lbf = espressomd.lb.LBFluidWalberla(kinematic_viscosity=1.0, density=1.0, agrid=1.0, tau=1.0, single_precision=False)
system.lb = lbf

# None of these should work...
lbf[1,1,1].whatever_you_want = [1.0] * 19
lbf[1,:,1].whatever_you_want = [1.0] * 19

# this does not work, as expected
print(lbf[1,:,1].whatever_you_want)

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugwaLBerlaIssues regarding waLBerla integration

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions