Model.cfdoutput#

Model.cfdoutput(output_file, format, solver, use_existing, existing_file, string_array=s_defaultStringList)#

Writes a CFD output deck.

Parameters:
  • output_file (hwString) – The full name and path of the output file.

  • format (hwString) – The format of the output file. Valid values are “ASCII” and “BINARY”.

  • solver (hwString) – The solver to export for. Valid values are “FLUENT” and “SC-TETRA”.

  • use_existing (int) –

    A flag that indicates whether to use an existing solver deck’s information during export.

    0 - Do not use an existing deck.

    1 - Use an existing deck. existing_file must be specified.

  • existing_file (hwString) – The full name and path of the existing solver deck file. This is ignored, if use_existing=0.

  • string_array (hwStringList) – The string array that contains the additional input parameters.

Example#

Export the displayed entities to a Fluent ASCII file, using an existing solver deck#
import hm
import hm.entities as ent

model = hm.Model()

model.cfdoutput(
    output_file="C:/temp/fluent.out",
    format="ASCII",
    solver="FLUENT",
    use_existing=1,
    existing_file="C:/temp/fluent_existing.out",
    string_array=["Model_Dimension: mm"],
)