InitMeshBlockParser#

class pyedb.workflows.utilities.hfss_log_parser.InitMeshBlockParser(lines: list[str])#

Bases: BlockParser

Extract initial mesh statistics from the log.

This parser searches for the initial meshing profile section and extracts tetrahedra count, memory usage, and timing information.

Examples

>>> lines = [
...     "[PROFILE] Initial Meshing",
...     "Tetrahedra: 5000",
...     "Memory 128.5 MB",
...     "Real Time 00:45",
...     "CPU Time 00:42",
... ]
>>> parser = InitMeshBlockParser(lines)
>>> mesh = parser.parse()
>>> mesh.tetrahedra
5000

Overview#

parse

Parse initial mesh statistics from log lines.

Import detail#

from pyedb.workflows.utilities.hfss_log_parser import InitMeshBlockParser

Method detail#

InitMeshBlockParser.parse() InitMesh#

Parse initial mesh statistics from log lines.

Returns:
InitMesh

Initial mesh metrics including tetrahedra count, memory, and timing.

Examples

>>> lines = ["[PROFILE] Initial Meshing", "Tetrahedra: 10000"]
>>> parser = InitMeshBlockParser(lines)
>>> mesh = parser.parse()
>>> mesh.tetrahedra
10000