Boundary Conditions
There are two types of boundary conditions to fully specify for a given CFD problem and to define the behavior of the solution at the boundaries of the computational domain: Dirichlet boundary conditions and Neumann boundary conditions. These conditions play a crucial role in determining the accuracy and stability of the numerical solution obtained through simulation.
Dirichlet boundary conditions prescribe the value of the solution at the boundary of the computational domain, often used to set the velocity, temperature, or other flow properties at the boundaries. In AcuSolve, nodal boundary conditions are equivalent to Dirichlet boundary conditions and are applied at three, four, or six nodes on each surface.
On the other hand, Neumann boundary conditions prescribe the normal derivative of the solution at the boundary. They are often used to represent conditions where a certain amount of heat is either entering or leaving the domain through the boundary. Typical examples of Neumann boundary conditions include mass flux (or mass flow rate) and heat flux. In AcuSolve, element boundary conditions are equivalent to Neumann boundary conditions and are applied at the quadrature points (element faces) of the surfaces.
It is possible to over specify a boundary condition by using combinations of element and nodal boundary conditions. In that case, nodal boundary conditions take precedence over element boundary conditions, meaning that the element boundary condition is ignored. If more than one nodal boundary condition is specified for a given variable on a given node, then the boundary condition with the highest precedence takes effect.
In the context of fluid dynamics simulations, the choice between Neumann and Dirichlet boundary conditions depends on the physical problem being modeled and the available information. For example, if the velocity at a boundary is known, a Dirichlet condition on velocity might be applied. If the mass flux at the boundary is known, a Neumann condition might be more appropriate.
All problems in fluid dynamics are governed by the same standard conservation equations. What makes the solution of each problem unique is the set of boundary conditions. Hence, boundary conditions have great impact on the accuracy of the simulation. Therefore, it is ensured that realistic constraints are enforced on the CFD model. This section discusses the variety of boundary conditions used in AcuSolve.
Details of boundary condition guidelines can be found in the Guidelines for Quality CFD Modeling, specifically under the section on Boundary Condition Sensitivity.
Flow Boundary Conditions
- Inflow Boundary Conditions
The inflow boundary conditions are applied at the boundaries where the flow enters the domain. Various methods exist for specifying inflow conditions.
- Velocity
The velocity inflow condition is employed to define the velocity at the inlet. Velocity components can be specified in different coordinate systems (Cartesian, cylindrical system, spherical systems), or the velocity magnitude normal to the boundary surface, with the other two components set to zero. The pressure value at the inlet needs adjustment during calculation to align with the specified velocity provided at the inlet. The velocity value itself remains constant or can be adjusted using a multiplier function. In pipe flows, setting the inflow with high precedence over the wall is recommended using the precedence parameter to ensure correct mass flow rate.
Additional input parameters are required for this boundary condition type, depending on the activated models. When turbulence is active, turbulence inlet parameters are necessary, including direct, auto, intensity length scale, intensity viscosity ratio and viscosity ratio.- The direct turbulence input varies depending on the choice of turbulence models.
- Auto turbulence input type automatically assigns a turbulent state based on the selected turbulence model, turbulence intensity type, and turbulence flow type, applicable to all turbulence models.
- The intensity length scale turbulence input type approximates turbulence at the inlet using the turbulence intensity type and length scale. It is valid for all turbulence models.
- The intensity viscosity ratio turbulence input type calculates the turbulence parameters using turbulence intensity type and viscosity ratio. It is valid for two-equation models.
- The viscosity ratio turbulence input type calculates turbulence using the viscosity ratio. It is valid only for the Spalart-Allmaras turbulence model.
When the heat transfer equation is activated, the value temperature type is used to specify the temperature at the inlet. The heat flux temperature type is not used for the inlet boundary condition.
Radiation parameters are needed when using the P1 model or DO model.Note: The heat transfer (temperature = advective diffusive) must be first selected before activating radiation. - Average Velocity
An average velocity is applied at the surface. A boundary layer profiles for velocity and turbulence fields are calculated based on the distance from no-slip walls and the estimated Reynolds number. This boundary condition offers a robust method for automatically specifying physically realistic inlet conditions. It is considerably more realistic than specifying a constant velocity condition for internal flow applications.
- Mass flux
A user-prescribed mass flux (equivalent to mass flow rate) is applied to the surface. A boundary layer profiles for velocity and turbulence fields are calculated based on the distance from no-slip walls and estimated Reynolds number. Below is the mass flow rate equation:
where : mass flow rate, : density, : velocity, : inlet area.
Starting from v2022.3, mass flow inlet conditions are no longer limited to planar surfaces. Cylindrically curved or arbitrarily shaped surfaces can be used to define inlet mass flow conditions. The flow direction is relative to the local surface normal, allowing for inlets on circumferential surfaces.
- Flow Rate
A user-prescribed flow rate (equivalent to volumetric flow rate) is imposed on the surface. A boundary layer profiles for velocity and turbulence fields are calculated based on the distance from no-slip walls and estimated Reynolds number.
- User-defined boundary layer profile at the inletAs mentioned above, AcuSolve supports built-in boundary condition types (mass flux, flow rate, average velocity) that automatically generate a turbulent or laminar boundary layer profile. However, if these profiles are unsuitable for a particular application, you can generate a user-defined profile using one of the following options:
- Using the nodal boundary condition,
type =
piecewise_linear or
type =
cubic_spline
With this approach, AcuSolve interpolates the given velocity profile onto the mesh based on the data provided in a two-column array of dependent and independent variables. This approach is useful for profiles that are a function of a single coordinate direction.
- Using the nodal boundary condition,
type =
scattered_data
In this approach, AcuSolve interpolates the given velocity profile onto the mesh based on the data provided in a 4-column array of coordinates and velocity values. AcuSolve triangulates the input data to form a 2D mesh, then projects the coordinates of the inlet plane into this mesh to determine the mapping of the velocity. This approach is used when dealing with a profile that varies in more than one spatial direction.
- User-defined function for the velocity field
This is the most general approach, offering flexibility to accomplish a wide range of tasks.
- Using the nodal boundary condition,
type =
piecewise_linear or
type =
cubic_spline
- Pressure
A pressure value is applied to all the nodes of the surface. This type of condition is useful for simulating scenarios where the pressure at the inlet is known, but the velocity might vary. Turbulence inputs are required when turbulence is activated under equation. Refer to the details of turbulence inlet parameters under the velocity section.
- Stagnation pressure
A user-specified stagnation pressure (equivalent to total pressure) is explicitly defined at the inlet, while the corresponding velocity and static pressure are calculated as the simulation proceeds. Turbulence inflow parameters need to be specified, as in the velocity inflow type.
Stagnation pressure (total pressure) is the sum of static pressure and dynamic pressure, reflecting the total energy of the flow. It can be expressed as:
where : static pressure, : density, : velocity.
The stagnation pressure type is weakly imposed boundary condition, making it a suitable choice for simulating flow through components such as fans, where changes in pressure and velocity are significant. It is suitable for both incompressible and compressible flow simulations.
- Velocity_pressure_temperature | mach_pressure_temperature
For a compressible inflow boundary condition, all three variables need to be specified. The simplest choice is primitive variables: velocity, pressure and temperature. Another choice could be Mach number, pressure and temperature. To specify these conditions, two inflow types are introduced: velocity_pressure_temperature or mach_pressure_temperature.
If Mach < 1, velocity is computed based on the given Mach number and temperature, while pressure is ignored. If Mach > 1, velocity is computed based on the given Mach number and temperature, while pressure and temperature are fixed.
- Velocity
- Outflow Boundary Conditions
This type of boundary condition is applied at the boundaries where the flow exits the domain.
- PressureThe pressure type is typically used for the outflow. AcuSolve offers three pressure types.
- auto_pressure
The user-specified pressure is used in subsonic flow, while it is ignored if lower than the computed pressure on the outflow surface.
- fixed_pressure
The user-specified pressure is directly applied at the outflow surface.
- free_pressure
The user-specified pressure is ignored, and a computed pressure extrapolated from upstream is applied at the outflow surface.
- auto_pressure
- pressure_loss_factor
At the outlet, the pressure loss factor, which can vary up to 1, can be set. Setting the pressure_loss_factor = 1 at the outlet may enhance the simulation stability if reverse flow is caused by an excessively short domain.
- Back flow Condition
The outlet boundary condition in AcuSolve employs a weakly enforced condition on the pressure field. It attempts to make the integrated pressure over the boundary equal to some value (zero by default). This works well as long as the flow is exiting from the boundary. If, for some reason, the flow reverses and attempts to enter the domain, AcuSolve provides a method for you to specify the temperature of the re-entering flow. This is a function of the back_flow_conditions. When this condition is active, AcuSolve automatically applies nodal boundary conditions to the temperature, turbulence, viscoelastic_stress, and species variables at the nodes of an outlet where the flow has reversed and is entering the domain.
- Pressure
- Wall boundary conditions
This type of boundary condition is used for the physical walls in the simulation domain, specifying the velocity of the fluid at the wall.
For instance, for a stationary wall in viscous flow, a wall boundary condition would set all components of the velocity to zero. In a simulation where the wall itself is moving at a certain velocity, a wall boundary condition would impose that velocity on the fluid at the wall. In short, a wall boundary condition can be expressed as and .
When heat transfer equation is activated, you must provide the temperature wall boundary condition by selecting either the value temperature type or the flux temperature type. Choosing the value temperature type requires providing temperature value, while the flux temperature type requires specifying heat flux. For external walls, you have an additional option, convective heat transfer option, which requires specifying convective heat coefficient and convective heat reference temperature.
If the flux specified for an exterior surface is 0, then it behaves as an adiabatic wall, meaning that no heat flux is applied to the external surface.
If the flux specified for an interior surface is 0, it is free to evolve during the simulation. This implies that there is still heat transfer across the surface via conduction, but the contribution of the heat flux from the surface triangles is zero. If you want an internal adiabatic wall, you will need to split the nodes on the surface to prevent heat transfer between the components.
- Slip Boundary Condition
This type of boundary condition is applied to the surface where there is no normal velocity but has zero shear stress, indicating no change in the tangential velocity. An element boundary condition of type ‘free’ is imposed on the pressure, which is particularly important for curved surfaces. Additionally, a plane of symmetry can be specified with this type.
- Symmetry Boundary Condition
For problems that have a plane of symmetry, exploiting the fact that the solution is symmetrical allows modeling only one half of the problem. The boundary type is then defined as symmetry at the symmetry plane. The geometry of the given surface is checked, and appropriate warning or error messages are issued if it is not flat. It is highly recommended to use symmetry instead of slip for all surfaces that are planes of symmetry. Mathematically the symmetry type is equivalent to the slip type, that is, zero flux across the plane and zero shear stress along the plane.
- Far-Field Boundary Condition
This type of boundary conditions is used to represent conditions far away from the source of disturbance. A far_field boundary condition includes both a velocity-based inflow condition and a pressure-based outflow condition. At each point on the boundary, the angle between the outward normal to the surface and the user-specified velocity is used to determine whether to impose the inflow or outflow conditions. The flow at these boundaries is typically uniform. Far-field is generally used for external flows.
- Free Surface Boundary Condition
As the name suggests, a free surface is the surface of the fluid not constrained by any physical boundary, such as the top surface of a sloshing box problem. This boundary condition imposes the normal component of mesh velocity to the flow velocity.
This is used in combination with the ALE mesh motion equation to calculate the shape of the top surface of the fluid, such as wave propagation or generation. However, it does not support breaking waves. Defining the surface tension for the surface is necessary. If the top surface of the fluid is intended to remain flat, this is not needed.
Atmospheric Boundary Layer
The atmospheric boundary layer condition enables the specification of sustainable logarithmic inflow profiles for both wind velocity and turbulence. It is compatible with both one and two-equation turbulence models, offering flexibility in simulations. You can choose from a range of upstream roughness settings, including city, suburb, or forest, to closely reflect real-world conditions.

AcuSolve provides two distinct methods for generating inflow wind velocity profiles using the atmospheric boundary layer approach. The first option, friction_velocity, relies on the logarithmic law, while the second sample_height_velocity, utilizes the power law.
In the friction_velocity approach, this method employs the logarithmic law to determine the wind velocity profile in the vertical direction, which is defined as
where is the distance from the ground, the friction velocity, and is the von Karman constant ( ). represents the surface roughness.
| Terrain | Surface roughness |
|---|---|
| ocean | 0.001 m |
| low grass | 0.020 m |
| high grass | 0.060 m |
| forest | 1.000 m |
| suburb | 0.300 m |
| town | 1.000 m |
| city | 2.500 m |
Inlet turbulence properties are determined based on the chosen turbulence model. For instance, with the Spalart-Allmaras (S-A) model, you can specify the eddy viscosity.
where is the eddy viscosity.
For standard, RNG, realizable k-epsilon models, the turbulent kinetic energy ( ) and dissipation rate ( ) at the inlet plane are calculated using the following equations:
Similarly, for k-omega and Shear Stress Transport (SST) models, the turbulent dissipation rate ( ) is determined accordingly. The turbulent kinetic energy is the same as the one used for the k-epsilon turbulence model.
where is a model constant of the k-ε model (= 0.09).
When atmospheric_reference_velocity_type is set to sample_height_velocity, the vertical velocity profile at the inlet is determined using the power law,
where is the reference velocity at the reference height , is the power law coefficient, which is a function of surface roughness.
An empirical ratio of 30 between inflow roughness and standard wall roughness is typically assumed, aiding in the determination of surface roughness values. For instance, if the atmospheric boundary layer inflow has a roughness of 0.001m, the ground with standard turbulence wall function should have a roughness of 0.03m.