Non-Reflecting Boundary Conditions in OpenFOAM


前言

CFD仿真中常用到一类重要边界条件:Non-Reflecting Boundary (无反射边界)
OpenFOAM中已有两类无反射边界:advective和waveTransmissive
本文参考:https://caefn.com/openfoam/bc-advective-wavetransmissive


一、什么是无反射边界?

无反射边界是指流场中的波(典型的如压力波)通过边界时不产生反射效应,即边界的存在对波的传播没有干扰。

无反射边界条件可表述为
D ϕ D t = ∂ ϕ ∂ t + U ⋅ ∇ ϕ = 0 \frac{D\phi}{Dt}=\frac{\partial \phi}{\partial t}+\bm{U}\cdot \nabla{\phi}=0 DtDϕ=tϕ+Uϕ=0

OpenFOAM处理非结构网格,考虑边界的法向,因此有如下近似表达式
D ϕ D t ≈ ∂ ϕ ∂ t + U n ⋅ ∂ ϕ ∂ n = 0 \frac{D\phi}{Dt} \approx \frac{\partial \phi}{\partial t}+\bm{U_{n}}\cdot \frac{\partial\phi}{\partial n}=0 DtDϕtϕ+Unnϕ=0

advective和waveTransmissive的区别在于法向速度 U n \bm{U_{n}} Un 的算法,该过程由advectionSpeed()成员函数完成。

二、advective边界

直接采用速度的法向分量。

U n = u n \bm{U_{n}} = u_{n} Un=un

advectiveFvPatchField类中advectionSpeed()的实现

template<class Type>
Foam::tmp<Foam::scalarField>
Foam::advectiveFvPatchField<Type>::advectionSpeed() const
{
    const surfaceScalarField& phi =
        this->db().objectRegistry::template lookupObject<surfaceScalarField>
        (phiName_);
 
    fvsPatchField<scalar> phip =
        this->patch().template lookupPatchField<surfaceScalarField, scalar>
        (
            phiName_
        );
 
    if (phi.dimensions() == dimDensity*dimVelocity*dimArea)
    {
        const fvPatchScalarField& rhop =
            this->patch().template lookupPatchField<volScalarField, scalar>
            (
                rhoName_
            );
 
        return phip/(rhop*this->patch().magSf());
    }
    else
    {
        return phip/this->patch().magSf();
    }
}

三、waveTransmissive边界

采用速度的法向分量与声速的和。
U n = u n + c = u n + γ / ψ \bm{U_{n}} = u_{n}+c=u_{n}+\sqrt{\gamma/\psi} Un=un+c=un+γ/ψ
其中 γ \gamma γ 为绝热指数, ψ \psi ψ 为压缩系数(compressibility)

waveTransmissiveFvPatchField类中advectionSpeed()的实现

template<class Type>
Foam::tmp<Foam::scalarField>
Foam::waveTransmissiveFvPatchField<Type>::advectionSpeed() const
{
    // Lookup the velocity and compressibility of the patch
    const fvPatchField<scalar>& psip =
        this->patch().template
            lookupPatchField<volScalarField, scalar>(psiName_);
 
    const surfaceScalarField& phi =
        this->db().template lookupObject<surfaceScalarField>(this->phiName_);
 
    fvsPatchField<scalar> phip =
        this->patch().template
            lookupPatchField<surfaceScalarField, scalar>(this->phiName_);
 
    if (phi.dimensions() == dimDensity*dimVelocity*dimArea)
    {
        const fvPatchScalarField& rhop =
            this->patch().template
                lookupPatchField<volScalarField, scalar>(this->rhoName_);
 
        phip /= rhop;
    }
 
    // Calculate the speed of the field wave w
    // by summing the component of the velocity normal to the boundary
    // and the speed of sound (sqrt(gamma_/psi)).
    return phip/this->patch().magSf() + sqrt(gamma_/psip);
}

个人认为,waveTransmissive边界更适用于可压缩流动,因为它考虑了声速的影响。

Contact me
E-mail: 18810577380@163.com

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Intelligent Reflecting Surface (IRS) is a new promising technology that can enhance the performance of cognitive radio (CR) networks by improving the spectrum sensing and communication efficiency. In this paper, we propose an IRS-aided spectrum sensing scheme for CR networks. The proposed scheme utilizes the passive reflecting property of IRS to enhance the signal-to-noise ratio (SNR) of the received signal at the CR receiver. The IRS reflects the received signal to enhance the received power and reduce the interference from other users in the network. The proposed scheme also uses machine learning techniques to adaptively adjust the reflecting coefficients of the IRS to maximize the SNR of the received signal. Simulation results show that the proposed scheme outperforms the conventional spectrum sensing scheme in terms of detection probability and false alarm rate. The simulation results also show that the proposed scheme can achieve a higher SNR with fewer samples than the conventional scheme. Moreover, the proposed scheme can improve the communication efficiency of the CR network by reducing the interference from other users in the network. In conclusion, the proposed IRS-aided spectrum sensing scheme can significantly enhance the performance of CR networks. The scheme can improve the spectrum sensing accuracy and communication efficiency by utilizing the passive reflecting property of IRS and the machine learning techniques to adaptively adjust the reflecting coefficients of the IRS. The proposed scheme has great potential in future CR networks to address the increasing demand for spectrum resources.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值