|
[Sponsors] |
Read gradient values of constantAlphaContactAngle |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 25, 2013, 09:26 |
Read gradient values of constantAlphaContactAngle
|
#1 |
Member
Join Date: May 2012
Posts: 55
Rep Power: 15 |
Hello foamers,
I want to read the values of the entry "gradient" of boundary patch. Let's say I define the BC as: Code:
symFluidLeft { type constantAlphaContactAngle; theta0 45; limit gradient; value uniform 0; } Code:
const fvMesh& mesh = alpha1.mesh(); const volScalarField::GeometricBoundaryField& abf = alpha1.boundaryField(); const fvBoundaryMesh& boundary = mesh.boundary(); forAll(boundary, patchI) { if(abf[patchI].type() == "constantAlphaContactAngle") { Info << "Alpha value of face 1 of patchI" << abf[patchI][0] << endl; } } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Temperature gradient in CFX | Chander | CFX | 5 | January 7, 2015 04:00 |
How to setup a simple OpenFOAM cluster? | TommiPLaiho | OpenFOAM Installation | 3 | October 27, 2013 16:15 |
999999 (../../src/mpsystem.c@1123):mpt_read: failed:errno = 11 | UDS_rambler | FLUENT | 2 | November 22, 2011 10:46 |
read a file .txt with nurecial values of time and acceleration | sicfred | Fluent UDF and Scheme Programming | 0 | November 21, 2011 08:02 |
pressure gradient term in low speed flow | Atit Koonsrisuk | Main CFD Forum | 2 | January 10, 2002 11:52 |