|
[Sponsors] |
January 2, 2023, 02:49 |
calculating inner product in openfoam
|
#1 |
Senior Member
Farzad Faraji
Join Date: Nov 2019
Posts: 206
Rep Power: 8 |
Hello everyone
I want to calculate below equation; Code:
epsilonn = U & fvm::laplacian(U); Code:
volScalarField epsilonn = U & fvm::laplacian(U); Code:
UEqn.H:8:29: error: no match for ‘operator&’ (operand types are ‘Foam::volVectorField {aka Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>}’ and ‘Foam::tmp<Foam::fvMatrix<Foam::Vector<double> > >’) volScalarField epsilonn = U & fvm::laplacian(U); |
|
January 2, 2023, 02:57 |
|
#2 |
Member
Join Date: Jan 2022
Location: Germany
Posts: 72
Rep Power: 4 |
use fvc instead of fvm and your problem schould disappear.
|
|
January 2, 2023, 15:09 |
|
#3 |
Senior Member
Farzad Faraji
Join Date: Nov 2019
Posts: 206
Rep Power: 8 |
||
Tags |
inner product, openfoam, volscalarfield |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM 4.0 Released | CFDFoundation | OpenFOAM Announcements from OpenFOAM Foundation | 2 | October 6, 2017 06:40 |
OpenFOAM Training, London, Chicago, Munich, Houston 2016-2017 | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | September 14, 2016 04:19 |
OpenFOAM Training Beijing 22-26 Aug 2016 | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | May 3, 2016 05:57 |
OpenFOAM Foundation releases OpenFOAM 2.2.2 | opencfd | OpenFOAM Announcements from ESI-OpenCFD | 0 | October 14, 2013 08:18 |
[swak4Foam] Difference in calculating div(U*U) swak4FOAM vs. OpenFOAM codedFunctionObject | polo | OpenFOAM Community Contributions | 7 | October 1, 2013 11:22 |