Click or drag to resize

AdvancedOptionsFESolver Class

An object implementing the Advanced Finite Element Solver Options in Charge Domain.
Inheritance Hierarchy
SystemObject
  ema3d.Api.V26.Charging.DomainAdvancedOptionsFESolver

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

The AdvancedOptionsFESolver type exposes the following members.

Properties
 NameDescription
Public propertyAdaptiveMeshLowerLimitOn Option to use Adaptive Mesh Lower Limit.
Public propertyAdaptiveMeshLowerLimitValue The value at which the Adaptive Mesh Lower Limit is set.
Public propertyAdvancedFESolverOptionsOn Enables the Advanced Finite Element Solver Options to be written during file export.
Public propertyInternalMaxIterations Maximum number of iterations the solver will use when searching for a converged solution.
Public propertyInternalPolynomialOrder Order of polynomial to be used in matrix solver.
Public propertyInternalPreconditioner Option to use a preconditioner for matrix solver.
Public propertyInternalTolerance Tolerance used to determine whether a solution is converged.
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 methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Remarks
This does not directly wrap the ChargingSolverOptions, but instead implements some of the wrapped properties of ChargingSolverOptions and AdvancedChargeOptions to be used in Charge Domain. Corresponds to the Advanced Options > Finite Element Solver Options in the UI.
Example
Python
from ema3d.Api.V26.Charging.Domain import ChargeDomain as ChargeDomain
from ema3d.Api.V26.Charging.Domain import ChargingEnvironment as ChargingEnvironment

_cd = ChargeDomain.GetInstance(Window.ActiveWindow.Document)
_cd.SwitchChargingOptions.SimulationType = ChargingEnvironment.Custom

# must be set to true to enable the export of the other options
_cd.AdvancedOptionsFESolver.AdvancedFESolverOptionsOn = True

_cd.AdvancedOptionsFESolver.InternalPolynomialOrder = 4
_cd.AdvancedOptionsFESolver.InternalMaxIterations = 600
_cd.AdvancedOptionsFESolver.InternalTolerance = 1e-30
_cd.AdvancedOptionsFESolver.InternalPreconditioner = False
_cd.AdvancedOptionsFESolver.AdaptiveMeshLowerLimitOn = True
_cd.AdvancedOptionsFESolver.AdaptiveMeshLowerLimitValue = 2e-4
See Also