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/)
-   -   d2dt2 on a patch (https://www.cfd-online.com/Forums/openfoam-programming-development/247087-d2dt2-patch.html)

ngbidi January 12, 2023 08:06

d2dt2 on a patch
 
Hi Foamers,

is there a way to get the second time derivative on a patch? I would like to calculate the second time derivative for the temperature. So far, I know how to calculate the second time derivative for the whole field with fvm::d2dt2. But I get a fvMatrix and I don't know how to continue with that.

Thanks in advance.

ngbidi January 15, 2023 06:53

solved
 
I found out the answer myself. I only need to use fvc::d2dt2 instead of fvm::d2dt2 and then I will get a volScalarField from which I can take the boundary values.


All times are GMT -4. The time now is 15:49.