CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   fvc::interpolate (https://www.cfd-online.com/Forums/openfoam-programming-development/153912-fvc-interpolate.html)

morourke June 6, 2015 08:34

fvc::interpolate
 
Hi, I am trying to revive some OF code written a few years ago for 1.6 and include in 3.1. As I understand the following code its intention is to rebuild the change in stress at the current timestep. However when I try to compile this I get errors relating to fvc::interpolate. Any suggestions in how to fix this would be appreciated.

Dsigma = fvc::reconstruct
(
fvc::interpolate
(
2.0*mu + lambda,
"interpolate(Dsigma)"
) * fvc::snGrad(DD) * mesh.magSf()
+
(
mesh.Sf() &
fvc::interpolate
(
mu*gradDD.T() - (mu + lambda)*gradDD + I* ( lambda*tr(gradDD) ),
"interpolate(Dsigma)"
)
)
);


All times are GMT -4. The time now is 05:41.