Skip to content

Allow to overwrite multiple sections in one section statement and allow for interpolation in that statement #212

@MFraters

Description

@MFraters

Currently sections can only overwrite one coordinate. Although this works, it can lead to very complicated input files when you have a slab which is different on every coordinate. It would therefore be useful to allow users to overwrite multiple sections of a slab at the same time and overwrite it in a way which interpolates between two defined sections.

Note there there is already a linear interpolation between sections, but that only works between two coordinates. When you need more coordinates, it requires you to do this by hand.

Current input code

	       "sections":[{"coordinate":0,
			    "segments":[{"length":100e3,"thickness":[100e3],"angle":[0,50]},
				        {"length":100e3,"thickness":[100e3],"angle":[50]}]},
			    {"coordinate":1,
			    "segments":[{"length":100e3,"thickness":[100e3],"angle":[0,40]},
				        {"length":100e3,"thickness":[100e3],"angle":[40]}]},
			   {"coordinate":2,
			    "segments":[{"length":100e3,"thickness":[100e3],"angle":[0,30]},
				        {"length":100e3,"thickness":[100e3],"angle":[30]}]},
			   {"coordinate":3,
			    "segments":[{"length":100e3,"thickness":[100e3],"angle":[0,20]},
				        {"length":100e3,"thickness":[100e3],"angle":[20]}]},
			   {"coordinate":4,
			    "segments":[{"length":100e3,"thickness":[100e3],"angle":[0,20]},
				        {"length":100e3,"thickness":[100e3],"angle":[20]}]},
                          ]

proposed input code:

	       "sections":[{"coordinate":[0,3],
			    [
                             {"segments":[{"length":100e3,"thickness":[100e3],"angle":[0,50]},
				         {"length":100e3,"thickness":[100e3],"angle":[50]}]}},
                             {"segments":[{"length":100e3,"thickness":[100e3],"angle":[0,20]},
				         {"length":100e3,"thickness":[100e3],"angle":[20]}]}
                            ],
			   [{"coordinate":4,
			    {"segments":[{"length":100e3,"thickness":[100e3],"angle":[0,20]},
				        {"length":100e3,"thickness":[100e3],"angle":[20]}]}}],
                          ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions