If the acoustic problem is solved on the same mesh as the CFD then the mapping problem is less of an issue, especially if both physics use the same shape function order (they are both linear per default). Using the Background Fluid Flow Coupling is also necessary, if perfectly matched layers (PMLs) are present in the model, in order to get the flow field inside the PML regions. In any case the coupling case can still be useful as the CFD solution will be smoothed by the mapping (the degree of smoothing can be controlled) and this is.
The multiphysics coupling Background Fluid Flow Coupling can couple all
Single-Phase Flow and
Nonisothermal Flow interfaces, however in the current version of COMSOL Multiphysics there is no support for the high
Mach Number Flow interfaces. If such a coupling and mapping is necessary, manual mapping can be set up using the procedure described here.
The manual mapping is defined by a study that solves an additional set of equations which maps and smooths the background flow variables onto the acoustics mesh. The mapping equations can be set up using the Weak Form PDE interface from the
Mathematics branch. In the most general case the mean background flow pressure
p0, velocity field
u0, density
ρ0, temperature
T0, and turbulent viscosity
μT variables should be mapped onto corresponding variables on the acoustics mesh, for example,
p0,aco,
u0,aco,
ρ0,aco,
T0.aco, and
μT,aco. These new variables should then be used as the model inputs in the aeroacoustics model.
where the term on the right hand side adds smoothing using isotropic diffusion. The amount of diffusion is controlled by the parameter δ (a constant that can be tuned with a typical value of 0.01) and the mesh size squared
h2. The term corresponds to so-called source term stabilization as known from CFD.
In the Weak Form PDE interface define as many dependent variables as necessary and give them the same shape order as the order used for the acoustics (typically all linear). Assume that the source CFD variable for the x-velocity component is
u and the new destination variable is
U0, then the above mapping is achieved with the following
Weak Expression, entered in the user interface:
Notice the use of the withsol() operator, which is an extrusion-like coupling operator that can refer directly to a solution object and parameter value. In this example it is used to fetch data from the CFD mesh, in the solution generated by solver
sol1 and for the parameter value
Ma =
0.1. The
setval() statement is optional. It is important to use such an operator such that the CFD solution is mapped and interpolated correctly to the integration (Gauss) points on the acoustics mesh.