[NEWS] Definition of shapes

Since commit ‘976fe972’, shapes can be defined in ‘define’ blocks as well as fluids and species (see std/physical_properties.nts).

Example: definition of a disk and a quarter of a disk

double rad = 0.15;
double len = rad*1.01;

define shape "disk" {
    circle {center (0,0); radius rad;}

define shape "disk_quarter" {
    intersection {
        shape "disk";
        rectangle {corner_1_coordinates (0,0); corner_2_coordinates (len,-len);}

Usage example for a phase initialization:

initial_condition {
   shape "disk_quarter" {translate (0.5, 0.25);}
   shape "disk_quarter" {translate (0.25, 0.5);}