Procedures

ProcedureLocationProcedure TypeDescription
acosdmathFunction

Inverse cosine of x, result in degrees

Read more…
asindmathFunction

Inverse sine of x, result in degrees

Read more…
atan2dmathFunction

Inverse tangents of y/x (see atan2d), result in degrees

Read more…
atandmathFunction

Inverse tangents of x, result in degrees

Read more…
bisectoptimizeInterface

Find root of a function in an interval using bisection.

Read more…
boundary_conditions_tboundary_conditionsInterface

This interface is used to initialize the boundary_conditions_t

cosdmathFunction

Cosine of x in degrees

Read more…
create_meshtfmeshSubroutine

This subroutine creates the mesh data structure.

Read more…
create_performance_modelperformance_modelSubroutine

This subroutine creates a performance model object based on the type specified in the toml configuration file. The performance model type is read from the toml configuration file and the appropriate constructor function is called to create the performance model object.

Read more…
create_tfana_jobtfanaSubroutine

Load the configuration file and create the tfana_job_t object.

create_thermothermoSubroutine

Create a thermodynamic model from the configuration file.

cross_productmathFunction

Cross product in R3

Read more…
curve_tcurvesInterface

Create a new curve from a sequence of points.

deg2radmathFunction

Conversion from degrees to radians

Read more…
difffinite_differencesInterface

Approximate the derivative of a function using finite differences

diff2finite_differencesInterface

Approximate the second derivative of a function using finite differences

init_flowfieldflowfieldSubroutine

Initialize the flow field structure and set all fields to zero

integralfinite_differencesFunction

Returns the integral of f with respect to x using integrated Taylor expansion f: array of f values x: array of x values returns: the integral of f with respect to x

intersectioncurvesFunction

Compute the intersection of two curves.

load_machine_descriptionmachineSubroutine

Reads the machine description from a TOML table

mass_flow_rateflowfieldFunction

Compute the mass flow rate through a quasinormal

newtonoptimizeInterface

Find root of a function using Newton’s or secant method.

Read more…
normmathFunction

Standard L2 norm of a vector

Read more…
norm2mathFunction

Standard L2 norm of a vector squared

Read more…
outer_productmathFunction

Outer product

Read more…
primitive_functionfinite_differencesFunction

Returns the integral of f with respect to x using integrated Taylor expansion f: array of f values x: array of x values returns: the integral of f with respect to x

print_helpmainSubroutine

Prints a brief help message

project_to_curvecurvesSubroutine

Project a point onto a curve.

rad2degmathFunction

Conversion from radians to degres

Read more…
ramp_function_tmathInterface

Create a new ramp function with given start, duration, y1 and y2

recalculate_mesh_parameterstfmeshSubroutine

This subroutine recalculates the mesh parameters (streamline angles, curvatures, etc.)

redistribute_streamlines_at_quasinormaltfmeshSubroutine

This subroutine redistributes the streamlines along a quasinormal.

root_scalaroptimizeInterface

Find root of a function using given method

Read more…
save_flowfieldflowfieldSubroutine

Save the flow field to a Matlab/Octave compatible file

Read more…
sindmathFunction

Sine of x in degrees

Read more…
tandmathFunction

Tangents of x in degrees

Read more…
update_state_variables_at_quasinormal_from_Htot_S_CtfanaSubroutine

Update the state variables at the given quasinormal from the total enthalpy, entropy and velocity components.

WtflowfieldFunction

Compute the tangential velocity. The rotating frame is taken into account for leading and trailing edge of rotors. Similarly, mirroring is taken into account for compressor stators and turbine rotors.