https://mooseframework.inl.gov
Loading...
Searching...
No Matches
phase_field
include
postprocessors
ObtainAvgContactAngle.h
Go to the documentation of this file.
1
//* This file is part of the MOOSE framework
2
//* https://mooseframework.inl.gov
3
//*
4
//* All rights reserved, see COPYRIGHT for full restrictions
5
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6
//*
7
//* Licensed under LGPL 2.1, please see LICENSE for details
8
//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10
#pragma once
11
12
#include "
SidePostprocessor.h
"
13
21
class
ObtainAvgContactAngle
:
public
SidePostprocessor
22
{
23
public
:
24
static
InputParameters
validParams
();
25
26
ObtainAvgContactAngle
(
const
InputParameters
&
parameters
);
27
28
virtual
void
initialize
()
override
;
29
virtual
void
finalize
()
override
;
30
virtual
void
execute
()
override
;
31
using
Postprocessor::getValue
;
32
virtual
Real
getValue
()
const override
;
33
virtual
void
threadJoin
(
const
UserObject
&
y
)
override
;
34
35
protected
:
37
const
VariableValue
&
_pf
;
38
40
const
VariableGradient
&
_grad_pf
;
41
43
Real
_contact_angle
;
44
46
Real
_cos_theta_val
;
47
49
Real
_total_weight
;
50
};
y
const std::vector< double > y
Definition
EquilibriumConstantFitTest.C:18
SidePostprocessor.h
SidePostprocessor::parameters
const InputParameters & parameters() const
ObtainAvgContactAngle
Computes the average contact angle that the phase field interface makes with a boundary.
Definition
ObtainAvgContactAngle.h:22
ObtainAvgContactAngle::execute
virtual void execute() override
Definition
ObtainAvgContactAngle.C:45
ObtainAvgContactAngle::_total_weight
Real _total_weight
Boundary integral of (1 - pf^2) * |grad(pf)|, the normalization of _cos_theta_val.
Definition
ObtainAvgContactAngle.h:49
ObtainAvgContactAngle::initialize
virtual void initialize() override
Definition
ObtainAvgContactAngle.C:38
ObtainAvgContactAngle::finalize
virtual void finalize() override
Definition
ObtainAvgContactAngle.C:79
ObtainAvgContactAngle::_pf
const VariableValue & _pf
Value of the phase field variable, used to localize the average to the interface.
Definition
ObtainAvgContactAngle.h:37
ObtainAvgContactAngle::_grad_pf
const VariableGradient & _grad_pf
Gradient of the phase field variable.
Definition
ObtainAvgContactAngle.h:40
ObtainAvgContactAngle::_contact_angle
Real _contact_angle
Average contact angle, in degrees.
Definition
ObtainAvgContactAngle.h:43
ObtainAvgContactAngle::_cos_theta_val
Real _cos_theta_val
Boundary integral of (1 - pf^2) * grad(pf).n, the numerator of the averaged cos(theta)
Definition
ObtainAvgContactAngle.h:46
ObtainAvgContactAngle::getValue
virtual Real getValue() const override
Definition
ObtainAvgContactAngle.C:65
ObtainAvgContactAngle::validParams
static InputParameters validParams()
Definition
ObtainAvgContactAngle.C:19
ObtainAvgContactAngle::threadJoin
virtual void threadJoin(const UserObject &y) override
Definition
ObtainAvgContactAngle.C:71
Postprocessor::getValue
virtual PostprocessorValue getValue() const=0
SidePostprocessor
UserObject
VariableValue
VariableValueTempl< false > VariableValue
VariableGradient
VariableGradientTempl< false > VariableGradient
InputParameters
Generated on Fri Oct 23 2026 20:34:50 for https://mooseframework.inl.gov by
1.9.8