CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[mesh manipulation] Evaluating Cell Quality

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 27, 2022, 14:48
Default
  #21
New Member
 
Join Date: Jun 2022
Posts: 10
Rep Power: 3
AbhishekTAMU is on a distinguished road
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.
AbhishekTAMU is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[snappyHexMesh] very bad quality snapped mesh federicabi OpenFOAM Meshing & Mesh Conversion 18 September 26, 2018 10:33
Fluent UDF wrong number of cells in parallel - correct in serial dralexpe Fluent UDF and Scheme Programming 7 May 17, 2018 08:26
Particle tracking error alchem OpenFOAM Bugs 5 May 6, 2017 16:30
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 04:15
cell to cell relation CMB Siemens 1 December 4, 2003 04:05


All times are GMT -4. The time now is 06:22.