Special Variables and Operators
There are special variables available in the extra dimension. These variables can be used in the physics and in postprocessing, and work in connection with a Layered Material dataset. See Layered Material Dataset.
<phys>.xd: The extra dimension coordinate is wrapped into a physics interface variable, for example lshell.xd. The coordinate varies from 0 at the bottom to the laminate thickness d at the top.
<phys>.xd_rel: The relative extra dimension coordinate that varies between 0 at the bottom to 1 at the top.
<phys>.zl: The extra dimension coordinate that varies between d/2 at the bottom to d/2 at the top.
<phys>.num: The layer number that is 1 for the bottom layer and N for the top layer.
There are special operators available that can handle common operations in the extra dimension. These operators work with a Solution dataset.
<phys>.atxd1(xdim_location,expr): Extra dimension evaluation of expr on 1-dimensional entity at given extra dimension coordinate. The operator can be used to access any variable defined on a layer level product selection at a particular extra dimension location.
<phys>.atxd0(xdim_location,expr): Extra dimension evaluation of the expression on 0-dimensional entity at given extra dimension coordinate. The operator can be used to access any variable defined on an interface-level product selection at a particular extra dimension location.
<phys>.xdintopall(expr): Extra dimension integration of the expression on 1-dimensional entity. The expression must be wrapped inside the mean or extra dimension mean operators if it is a variable defined on the higher dimension.
<phys>.xdintopallint(expr): Extra dimension integration of the expression on 0-dimensional entity. The expression must be wrapped inside the mean or extra dimension mean operators if it is a variable defined on the higher dimension.
<phys>.xdsumbnd(expr): Extra dimension summation of the expression on a boundary. Useful to compute reaction forces and moments on the specific boundary.
<phys>.xdsumedg(expr): Extra dimension summation of the expression in an edge. Useful to compute reaction forces and moments in the specific edge.
<phys>.xdsumpnt(expr): Extra dimension summation of the expression in a point. Useful to compute reaction forces and moments in the specific point.
<phys>.xdavgbnd(expr): Extra dimension average of the expression on a boundary.
<phys>.xdavgedg(expr): Extra dimension average of the expression in an edge.
<phys>.xdavgpnt(expr): Extra dimension average of the expression in a point.
See Solution, Layered Material, Layered Material Slice, and Through Thickness in the COMSOL Multiphysics Reference Manual for details about the Solution dataset, the Layered Material dataset, and slice and through-thickness plots in layered materials.
Using Extra Dimensions in the COMSOL Multiphysics Reference Manual.