|
[Sponsors] |
November 22, 2022, 02:56 |
freestreamVelocity in foam-extend
|
#1 |
Member
Nguyen Trong Hiep
Join Date: Aug 2018
Posts: 48
Rep Power: 7 |
Hello,
Im trying to implement freestreamVelocity boundary condition (OpenFOAM.com) to foam-extend-5.0 as dynamic lib but its show wrong types for operator= Code:
freestreamVelocityFvPatchVectorField.C:66:17: error: no match for ‘operator=’ (operand types are ‘Foam::Field<Foam::Vector<double> >’ and ‘const Foam::zero’) refGrad() = Zero; What should i do to fix this problem? |
|
December 28, 2022, 21:54 |
|
#2 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33 |
refGrad() = vector::zero;
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
error with reactingFoam | BakedAlmonds | OpenFOAM Running, Solving & CFD | 4 | June 22, 2016 02:21 |
[blockMesh] error message with modeling a cube with a hold at the center | hsingtzu | OpenFOAM Meshing & Mesh Conversion | 2 | March 14, 2012 09:56 |
[blockMesh] BlockMesh FOAM warning | gaottino | OpenFOAM Meshing & Mesh Conversion | 7 | July 19, 2010 14:11 |
[blockMesh] Axisymmetrical mesh | Rasmus Gjesing (Gjesing) | OpenFOAM Meshing & Mesh Conversion | 10 | April 2, 2007 14:00 |
[Gmsh] Import gmsh msh to Foam | adorean | OpenFOAM Meshing & Mesh Conversion | 24 | April 27, 2005 08:19 |