Saving LAMMPS Results
This example LAMMPS workflow can save the
generated output file log.lammps
to a destination of your choice. This section walks through how
you can save the output file to S3.
In order to write the output file to an S3 bucket, you may need access to a Fuzzball S3 secret. Please see the Fuzzball secrets guide for instructions on how to set one up.
You can set up your workflow to save an output file to S3 through the GUI or by editing the Fuzzfile.
log.lammps
to S3.
After opening the workflow in the Fuzzball GUI, you can select the job in the workflow editor and navigate to the volumes tab.
You can edit the settings of lammps-data-volume
by clicking on it. You can specify a destination
for output file log.lammps
by clicking “Add
Egress” which will bring up a pop-up.
First, specify the source and destination location of the result file. Next, you can select the
secret which will be used to write your output file to the destination using the drop down.
Optionally you can specify a timeout and retry attempts. The screenshot below saves output file
log.lammps
to S3 URI s3://my-bucket/my-dir/log.lammps
. Fuzzball
user secret my-s3-bucket-secret
is used to write to S3
bucket s3://my-bucket/
. When you are done editing your egress configuration, you can click “OK”.
When you are done editing your volume settings, you can click the “Save” button.
Editing the Fuzzfile to save output file log.lammps
can be done in the GUI after opening the
Fuzzfile by clicking the ellipses (...
) menu in the lower right and select “Edit YAML” or simply
press e
on your keyboard. An editor with the workflow’s Fuzzfile will appear shown in the
screenshot below. If you are using the
CLI, the Fuzzfile can be edited in a
text editor of your choice.
The Fuzzfile in the previous section uses
ephemeral volume lammps-data-volume
with an egress block commented out.
volumes:
lammps-data-volume:
name: lammps-data-volume
reference: volume://user/ephemeral
ingress:
- source:
uri: https://www.lammps.org/inputs/in.lj.txt
destination:
uri: file://in.lj.txt
# egress:
# - source:
# uri: file://log.lammps
# destination:
# uri:
# secret:
To save output log.lammps
to S3 by editing the Fuzzfile, you can uncomment the egress
section, specify a destination with an S3 URI and a Fuzzball secret. The volumes block below
writes workflow output file log.lammps
to destination S3 URI s3://my-bucket/my-dir/log.lammps
.
The credentials used to egress this file is Fuzzball user secret secret://user/my-s3-bucket-secret
.
volumes:
lammps-data-volume:
name: lammps-data-volume
reference: volume://user/ephemeral
ingress:
- source:
uri: https://www.lammps.org/inputs/in.lj.txt
destination:
uri: file://in.lj.txt
egress:
- source:
uri: file://log.lammps
destination:
uri: s3://my-bucket/my-dir/log.lammps
secret: secret://user/my-s3-bucket-secret