Click or drag to resize

Settings Class

A Settings class that allows access to the same program settings as seen through the UI.
Inheritance Hierarchy
SystemObject
  ema3d.Api.V26Settings

Namespace: ema3d.Api.V26
Assembly: ema3d.Api.V26 (in ema3d.Api.V26.dll) Version: 0.0.0.0
Syntax
public sealed class Settings

The Settings type exposes the following members.

Properties
 NameDescription
Public propertyAutomaticPacking Determines whether MHarness cable is automatically repacked when modifying the cable.
Public propertyDomainBufferValue Value for domain size buffer.
Public propertyGenerateAllChargeFiles Allows the enabling and disabling of the automatic removal of Charge files unnecessary for simulation. Enable to generate all Charge files for more information.
Public propertyRenderAfterMesh Determines whether the mesh is rendered in the window after mesh has been created.
Public propertyUseChargeHDF5 Allows the enabling and disabling of Charge writing results as an HDF5 file. When disabled, text files are generated instead.
Public propertyUseGPUSolver Allows the enabling and disabling of the GPU accelerated solver for EMA3D, not CHARGE, simulations.
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodStatic memberGetInstance Gets the global settings instance, synchronized with the UI.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Example
Python
from ema3d.Api.V26 import Settings as Settings

_settings = Settings.GetInstance()

_settings.UseChargeHDF5 = True
_settings.GenerateAllChargeFiles = False
See Also