CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Read gradient values of constantAlphaContactAngle

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 25, 2013, 09:26
Default Read gradient values of constantAlphaContactAngle
  #1
Member
 
Join Date: May 2012
Posts: 55
Rep Power: 14
styleworker is on a distinguished road
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;    
    }
I'm able to read the alpha field of the patch of type constantAlphaContactAngle. In order to do this:
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;
    }
}
But how can I read the gradient values of this patch, which are stored in the GeometricBoundaryField abf, too?
styleworker is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 06:36.