|
[Sponsors] |
Convective boundary condition using average velocity |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 2, 2013, 09:26 |
Convective boundary condition using average velocity
|
#1 |
New Member
Balajee
Join Date: Dec 2013
Posts: 13
Rep Power: 12 |
Hi guys,
I am trying to create a convective boundary condition for my LES jet flow problem. Although other user written boundary condition are available in this forum, I am trying to implement a BC which uses the average velocity of the patch as the convective velocity. I decided to modify the advective boundary condition, which uses the local flux to calculate the convective velocity. I just modified the portion which calculates the advection speed(convective velocity). The below code is compiling without errors. Is it correct. Foam::convectiveFvPatchField<Type>::advectionSpeed () const { const surfaceScalarField& phi = this->db().objectRegistry::template lookupObject<surfaceScalarField> (phiName_); fvsPatchField<scalar> phip = this->patch().template lookupPatchField<surfaceScalarField, scalar> ( phiName_ ); fvsPatchField<scalar> phipt(phip); phipt = Foam::gSum(phip); //****** Line one ******// const scalarField& areap = this->patch().magSf(); scalarField area(areap.size(),Foam::gSum(areap)); //*** Line two ***/ return phipt/area; } In line one can I equate a surface scalar patch field to a surface scalar ? Is line two correct ? |
|
January 16, 2019, 10:04 |
|
#2 |
Senior Member
Jianrui Zeng
Join Date: May 2018
Location: China
Posts: 157
Rep Power: 8 |
Do you test your BC successfully?
|
|
Tags |
cbc, convective |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Radiation interface | hinca | CFX | 15 | January 26, 2014 18:11 |
CFX fails to calculate a diffuser pipe flow | shenying0710 | CFX | 7 | March 26, 2013 05:13 |
Velocity inlet boundary condition for porous medium | Chander | CFX | 3 | March 11, 2012 22:18 |
velocity boundary condition | Logan Page | OpenFOAM | 0 | November 19, 2010 18:59 |
New topic on same subject - Flow around race car | Tudor Miron | CFX | 15 | April 2, 2004 07:18 |