liggghtsCommandModel_writeLiggghts command

Syntax

Defined in liggghtsCommmands dictionary.

liggghtsCommandModels
(
   writeLiggghts
);
//- optional
writeLiggghtsProps
{
    writeLastOnly switch1;
    path "path";
    writeName "name";
    overwrite switch2;
    writeEvery "label1";
    verbose;
}
  • switch1 = (optional, default off) switch to select if only(!) last step is stored or every write step.

  • path = (optional, default “../DEM”) alternative write path relative to execution directory for saving the restart file. Path must exist!

  • name = (optional, default “liggghts.restartCFDEM”) name of the restart file to be written in path. Note: You can define a path and filename, where the path will be created if it does not exist.

  • switch2 = (optional, default off) switch to select if only one restart file $name or many files $name_$timeStamp are written

  • label1 = (optional, default 1) restart file is written every label1 number of write intervals verbose = (optional, default off) flag for verbose output

Examples

liggghtsCommandModels
(
   runLiggghts
   writeLiggghts
);

Description

The liggghtsCommand models can be used to execute a LIGGGHTS command during a CFD write. The “writeLiggghts” command executes the command “write_restart $name”, where $name is the name of the restart file, every write step or every X time steps if the writeEvery keyword is used.

Restrictions

None.