|
[Sponsors] |
September 2, 2020, 00:43 |
zero flux boundary conditon
|
#1 |
New Member
Lie Wei
Join Date: Sep 2020
Posts: 4
Rep Power: 6 |
hi, everyone
I have a question about the boundary condition for the following species transport equation: -fvm::laplacian(Dc, C) +fvm::div(phi, C) == 0 and I want to set the flux of C to be zero for my b.cs, which is given as: -DC*dC/dn + Un*C == 0 where n is the normal direction of b.c I use the codedmixed to implement my b.c as following: outlet { type codedMixed; refValue uniform 0; refGradient uniform 0; valueFraction uniform 1; name zeroFlux; code #{ fvPatchField<scalar> C ( patch().lookupPatchField<volScalarField, scalar>("C") ); fvPatchField<vector> U ( patch().lookupPatchField<volVectorField, vector>("U") ); scalarField Ux = U.component(vector::X); this->refValue() = 0.0; this->refGrad() = - Ux / 1.05e-8 * C; this->valueFraction() = 0.0; #}; } where 1.05e-8 is Dc The above code worked, but the results are quit different from COMSOL's (a FEM software) calculations. I don't know where I made the mistake, can anyone help? |
|
September 3, 2020, 05:39 |
|
#2 |
Senior Member
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14 |
Hi!
Why don't you just use the zeroGradient BC instead? |
|
September 9, 2020, 00:13 |
|
#3 |
New Member
Lie Wei
Join Date: Sep 2020
Posts: 4
Rep Power: 6 |
hi,anonymous
the BC I need is -DC*dC/dn + Un*C == 0 I think zeroGradient mean -DC*dC/dn == 0? |
|
Tags |
boundary condition |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Table bounds warnings at: END OF TIME STEP | CFXer | CFX | 4 | July 17, 2020 00:44 |
Centrifugal fan | j0hnny | CFX | 13 | October 1, 2019 14:55 |
Out File does not show Imbalance in % | Mmaragann | CFX | 5 | January 20, 2017 11:20 |
Problem in setting Boundary Condition | Madhatter92 | CFX | 12 | January 12, 2016 05:39 |
New topic on same subject - Flow around race car | Tudor Miron | CFX | 15 | April 2, 2004 07:18 |