cape.pyfun.faux: FAUXGeom interface module

This is a module for interacting with FUN3D input files that define geometry for adaptation. Files defined in the FAUXGeom file faux_input can have their surface meshes refined while other surfaces must be frozen.

See also:
class cape.pyfun.faux.FAUXGeom(fname='faux_input')

File control class for faux_input

Call:
>>> faux = pyFun.FAUXGeom()
Inputs:
fname: str

Name of faux_input file or template

Outputs:
faux: pyFun.faux.FAUXGeom

Interface for faux_input file

faux.nSurf: int

Number of MapBC surfaces with geometry descriptions

faux.Surfs: list[int]

List of surface indices

faux.Geom: dict (float | list)

Dictionary of geometry definitions

Versions:
  • 2017-02-23 @ddalle: First version

ConvertToVal(val)

Convert a text description to a Python value

Call:
>>> v = faux.ConvertToVal(val)
Inputs:
faux: pyFun.faux.FAUXGeom

Interface for faux_input file

val: str | unicode

Text of the value from file

Outputs:
v: str | int | float

Evaluated value of the text

Versions:
  • 2017-02-23 @ddalle: First version

Read(fname)

Read a faux_input input file or template

Call:
>>> faux.Read(fname)
Inputs:
fname: str

Name of faux_input file or template

Versions:
  • 2017-02-23 @ddalle: First version

SetGeom(comp, geom)

Set geometry definition for a component

Call:
>>> faux.SetGeom(comp, geom)
Inputs:
faux: pyFun.faux.FAUXGeom

Interface for faux_input file

comp: int

Component index

geom: dict

Geometry description

Versions:
  • 2017-02-23 @ddalle: First version

Write(fname='faux_input')

Write FAUXGeom input file

Call:
>>> faux.Write(fname="faux_input")
Inputs:
faux: pyFun.faux.FAUXGeom

Interface for faux_input file

fname: {"faux_input"} | str

Name of file to write

Versions:
  • 2017-02-23 @ddalle: First version