|
[Sponsors] |
July 27, 2022, 15:48 |
|
#21 |
New Member
Join Date: Jun 2022
Posts: 10
Rep Power: 4 |
Hi,
I am exactly trying to do same thing (printing out cellSkewness values when the simulation is running and assigning these values to a volScalarField so that I can use it as refinement parameter. I am using openfoam-6 version. But I end up getting an error. This is what I write in my solver (which is .C file)- Here. the 'createCellQualityFields.H' is the same file Vassili Kitsios has posted in this thread. //code lines # include "createCellQualityFields.H" cellQuality qualityCheck(mesh); cellSkewness.ref() = qualityCheck.skewness(); cellNonOrthogonality.ref() = qualityCheck.nonOrthogonality(); error that I get- error: no operator "=" matches these operands operand types are: Foam:: DimensionedField<Foam::scalar, Foam::volMesh> = Foam::tmp<Foam::Field<Foam::scalar>> cellSkewness.ref() = qualityCheck.skewness() ; ^ error: no operator "=" matches these operands operand types are: Foam:: DimensionedField<Foam::scalar, Foam::volMesh> = Foam::tmp<Foam::Field<Foam::scalar>> cellNonOrthogonality.ref() = qualityCheck.nonOrthogonality() ; any help would be highly appreciated. Thanks. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] very bad quality snapped mesh | federicabi | OpenFOAM Meshing & Mesh Conversion | 18 | September 26, 2018 11:33 |
Fluent UDF wrong number of cells in parallel - correct in serial | dralexpe | Fluent UDF and Scheme Programming | 7 | May 17, 2018 09:26 |
Particle tracking error | alchem | OpenFOAM Bugs | 5 | May 6, 2017 17:30 |
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues | michele | OpenFOAM Meshing & Mesh Conversion | 2 | July 15, 2005 05:15 |
cell to cell relation | CMB | Siemens | 1 | December 4, 2003 05:05 |