Non-Dimensional Inputs#

Most input variables in the Flow360 Python API accept dimensional values and non-dimensionalization is automatically performed during the preprocessing. However, there are still input variables defined using string expression that only accept non-dimensional values, such as AngleExpression, HeatFlux, etc. In this section, we demonstrate how to compute the non-dimensional value for these input variables.

Theoretically, the reference values for non-dimensionalization can be arbitrary as long as the resulting equations are identical to the original ones, but in practice, the reference values are usually selected based on some typical parameters of problems and flow characteristics to avoid confusion. The following table shows the usage of reference values to obtain the non-dimensional input variables:

Table 8.1.3 Usage of reference values for non-dimensional inputs in Flow360#

Property

Ref. value for nondim.

Usage in Flow360 Python API

Density

\(\rho_\infty\)

NavierStokesInitialCondition.rho

Pressure

\(p_\infty\)

NavierStokesInitialCondition.p

Velocity

\(C_\infty\)

Wall.velocity, Freestream.velocity, NavierStokesInitialCondition.u, NavierStokesInitialCondition.v, NavierStokesInitialCondition.w

Angular speed

\(C_\infty/L_\text{gridUnit}\)

AngleExpression.value

Temperature

\(T_\infty\)

Temperature.value, HeatEquationInitialCondition.temperature

Volumetric heat source

\(\frac{\rho_{\infty} C_{\infty}^3}{L_{gridUnit}}\)

Solid.volumetric_heat_source, PorousMedium.volumetric_heat_source

Heat flux

\(\rho_{\infty} C_{\infty}^3\)

HeatFlux.value

Note

  1. In the above table, all reference values can be accessed through Python API as shown in the Reference Variable Table.

  2. To demonstrate how to perform non-dimensionalization on these variables, we use the predefined operating_condition and reference_geometry to obtain these reference values.

Example: Convert RPM to non-dimensional rotating speed omega#

The RPM determines the angular speed, from it we can calculate the non-dimensional omega used in defining the AngleExpression.

(8.1.2)#\[\text{omega} = \frac{\omega}{C_\infty/L_\text{gridUnit}}.\]

Assume the RPM = 800, the non-dimensional omega_radians value then becomes:

1speed_of_sound = operating_condition.thermal_state.speed_of_sound
2omega = 800 * fl.u.rpm / (speed_of_sound / project.length_unit)
3omega_radians = omega.to(fl.u.rad).value

Example: Compute non-dimensional volumetric_heat_source#

For conjugate heat transfer simulations, the non-dimensional heat sources (volumetric_heat_source) of a solid zone are found from the dimensional \(Q_s\) as:

(8.1.3)#\[\text{volumetricHeatSource}= \frac{Q_s}{Q_{ref}} = \frac{Q_s L_{gridUnit}}{\rho_{\infty} C_{\infty}^3}\]

Assume the \(Q_s=10\;\text{W}/\text{m}^3\), the non-dimensional volumetric_heat_source value can be obtained as:

1speed_of_sound = operating_condition.thermal_state.speed_of_sound
2density = operating_condition.thermal_state.density
3Q_s = 10 * fl.u.W / fl.u.m**3
4volumetric_heat_source = Q_s * project.length_unit / (density * speed_of_sound ** 3).value

Example: Compute non-dimensional HeatFlux#

The non-dimensional heat flux for a wall boundary condition can be calculated by dividing the dimensional heat flux \(q\) by the reference value:

(8.1.4)#\[\text{heatFlux} = \frac{q}{q_{ref}} = \frac{q}{\rho_{\infty} C_{\infty}^3}\]

Assume the \(q=10\;\text{W}/\text{s}^2\), the non-dimensional heat_flux value can be obtained as:

1speed_of_sound = operating_condition.thermal_state.speed_of_sound
2density = operating_condition.thermal_state.density
3q = 10 * fl.u.W / fl.u.m**2
4heat_flux = q / (density * speed_of_sound ** 3).value