|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Join Date: Sep 2022
Posts: 18
Rep Power: 3 ![]() |
Hello to all,
I am studying the inletOutlet boundary condition. In the update coeffs there is: Code:
template<class Type> void Foam::inletOutletFvPatchField<Type>::updateCoeffs() { if (this->updated()) { return; } const Field<scalar>& phip = this->patch().template lookupPatchField<surfaceScalarField, scalar> ( phiName_ ); this->valueFraction() = 1.0 - pos0(phip); mixedFvPatchField<Type>::updateCoeffs(); } The mixed boundary condition is given by: ![]() This means that, when I have positive flux I will get fixedGradient and when I get negative flux I will get fixed value. However, there is the existance of a operator= in the function which will be called e.g, in the PEqn.H when the velocity is reconstructed. And it is defined as: Code:
template<class Type> void Foam::inletOutletFvPatchField<Type>::operator= ( const fvPatchField<Type>& ptf ) { fvPatchField<Type>::operator= ( this->valueFraction()*this->refValue() + (1 - this->valueFraction())*ptf ); } Last edited by newGuyAtCFD; September 28, 2022 at 05:18. |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Fatal overflow in linear solver. | iamnotfajar | CFX | 9 | October 28, 2020 05:47 |
Table bounds warnings at: END OF TIME STEP | CFXer | CFX | 4 | July 17, 2020 00:44 |
My radial inflow turbine | Abo Anas | CFX | 27 | May 11, 2018 02:44 |
inletOutlet boundary condition problem | siddharameshwara | OpenFOAM Running, Solving & CFD | 2 | February 16, 2011 12:01 |
RPM in Wind Turbine | Pankaj | CFX | 9 | November 23, 2009 05:05 |