forked from ORNL/AdditiveFOAM
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinterface.H
More file actions
28 lines (23 loc) · 751 Bytes
/
Copy pathinterface.H
File metadata and controls
28 lines (23 loc) · 751 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// write out interface dimensions
Info<< "interface span " << "(" << Tliq.value() << "): "
<< interfacePoints(T, Tliq.value()) << endl;
Info<< "interface span " << "(" << Tsol.value() << "): "
<< interfacePoints(T, Tsol.value()) << endl;
// write out the maximum temperature
Info<< "maximum temperature: " << gMax(T.internalField()) << endl;
volScalarField G("G", mag(fvc::grad(T)));
forAll(mesh.cells(), celli)
{
if ( (T[celli] <= Tliq.value()) && (T.oldTime()[celli] > Tliq.value()) )
{
const point pt = mesh.C()[celli];
interfaceData.append(
{
pt[0],
pt[1],
pt[2],
R[celli] / G[celli],
G[celli]
});
}
}