Skip to content

Instantly share code, notes, and snippets.

View talbring's full-sized avatar

Tim Albring talbring

  • San Francisco
View GitHub Profile
@talbring
talbring / OutputModules.md
Last active May 15, 2020 12:46
Output Modules

Output Fields

A field is a scalar value that is used to define outputs. There are different types of fields.

Coefficients (Field type COEFFICIENT)

Fields of type coefficient are values defined on surface markers. They are usually integrated quantities or functions of integrated quantities. If a module defines a field of that type, then new fields with the marker names attached a created. Consider you have the markers Farfield and Airfoil in your mesh file and a module defines a field myCoefficient. Then implicitely also the fields myCoefficient@Farfield and myCoefficient@Airfoil of type PER_SURFACE_COEFFICIENT are created.

@talbring
talbring / UserDefinedFunctions.md
Last active April 21, 2020 15:04
Technical Specification User Defined Functions in SU2

Technical Specification User Defined Functions in SU2

Introduction

User-defined functions enable to customize certain elements of the code. This can include for example the definition of boundary conditions, initial conditions or output fields. The idea is that users can write small code snippets to define the desired behavior. Up to now adding new capabilities to the code required modification of the C++ code and a subsequent compilation. Most users are, however, not familiar with this process.

Proposed behavior for user-defined output

At the first step, only user-defined output functions will be supported. There are two modes of operation, inline expressions and function definitions in a separate file.