Building a Mesh in Two Steps

Hi there,

So that I can separate out functionality into different files, I’m trying to build one mesh from two sets of border definitions. Fundamentally, I’m trying to do this:

??? AdditionalBorders =
    MaterialBottom(50)
    +MaterialTop(50)
    +MaterialLeft(50)
    +MaterialRight(50);

mesh Th = buildmesh(
    Left(50)+Right(50)
    +Top(50)+Bottom(50)
    
    +AdditionalBorders
);

What type should I be using for the AdditionalBorders variable in order to achieve the above?

Many thanks in advance!

yes just do

func AdditionalBorders =
MaterialBottom(50)
+MaterialTop(50)
+MaterialLeft(50)
+MaterialRight(50);

because a func just put a name to an expression.

Perfect. Many thanks