DockerOOMMFRunner#

class oommfc.oommf.DockerOOMMFRunner(docker_exe='docker', image='oommf/oommf:20b0', selinux=False)#

OOMMF runner using Docker.

Parameters:
  • docker_exe (str) – Docker executable. Defaults to docker.

  • image (str) – Docker image on DockerHub. Defaults to oommf/oommf:20a3.

  • selinux (bool, optional) – If True use additional :z flag for the mounted directories. This can be required to get read/write access when using SELinux. Use with caution and check the Docker documentation on SELinux: https://docs.docker.com/storage/bind-mounts/#configure-the-selinux-label. Alternatively, you can set SELinux to Permissive Mode to get read/write access. Defaults to False.


Methods

__dir__

Default dir() implementation.

__eq__

Return self==value.

__repr__

Return repr(self).

call

Call an external simulation package by passing argstr to it.

errors

Returns the content of boxsii.errors OOMMF file.

Properties

package_name

Simulation package name.

platform

Return platform seen by OOMMF.

status

Run a macrospin example for 1 ps through oommfc and print the OOMMF status.

version

Return the OOMMF version.


__repr__()#

Return repr(self).

errors()#

Returns the content of boxsii.errors OOMMF file.

Returns:

boxsii.errors OOMMF file.

Return type:

str