cape.pycart.options.databookopts: Pycart databook definition options

This module provides database options specific to pyCart/Cart3D. The vast majority of database options are common to all solvers and are thus inherited from cape.cfdx.options.DataBook.DataBook.

For force and/or moment components ("Type": "FM" or "Type": "Force"), each component requested in the databook must also be listed appropriately as a force and/or moment in the input.cntl file. These can be written manually to the template input.cntl file or controlled via the cape.pycart.options.Config.Config class.

The pyCart version of this module alters the default list of columns for inclusion in the data book. For point sensors this includes a column called RefLev that specifies the number of refinements of the mesh at the location of that point sensor (which my vary from case to case depending on mesh adaptation options). Point sensors also save the values of state variables at that point, which for Cart3D are the following columns.

Column

Description

X

x-coordinate of the point

Y

y-coordinate of the point

Z

z-coordinate of the point

Cp

Pressure coefficient

dp

(ppinfty)/(gammapinfty)

rho

Density over freestream density

u

x-velocity over freestream sound speed

v

y-velocity over freestream sound speed

w

z-velocity over freestream sound speed

P

Pressure over gamma times freestream pressure

The full description of the JSON options can be found in a CAPE section and a pyCart section.

See Also:
  • cape.cfdx.options.DataBook

  • cape.pycart.options.Config.Config

class cape.pycart.options.databookopts.DataBookOpts(*args, **kw)

Dictionary-based interface for DataBook specifications

Versions:
  • 2023-03-16 @ddalle: v1.0