CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

sampleDict with adaptive mesh refinement

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 6, 2020, 06:25
Default sampleDict with adaptive mesh refinement
  #1
Member
 
X
Join Date: Jan 2019
Posts: 63
Rep Power: 7
mcfdma is on a distinguished road
Hello.

I am working with a 2D adaptive mesh refinement case. The simulation was run parallelly and upon completion I used reconstructParMesh to get the polyMesh file followed by reconstruct to get all the fields.

However, I am facing issues while post-processing.

Code:
sampleDict
{
	type 		sets;
	libs		("libsampling.so");
	
	setFormat	csv;
	fields		(alpha.water rhoE grad(Ue) mag(grad(Ue)) U);
	
	interpolationScheme	cellPoint;
	
	sets
	(	

    line_p0.01mm //0.01  ---------------------------------5
    {
        type        uniform;
        axis        y;


        start       (0.01e-3  0.0      0.0);
        end         (0.01e-3  0.15e-3   0.0);
        nPoints     500;
    }
       
    	);
    
}
However, due to refinement, the alpha size which I set to refine in dynamicMeshDict file, is not the same at different time steps. The error I am getting:

Error
Code:
Reading fields:
    volScalarField: alpha.water mag(grad(Ue))--> FOAM Warning : 
--> FOAM FATAL IO ERROR: 
size 68141 is not equal to the given value of 98360

file: /home/m/OpenFOAM/m-v1812/research/DyM/CSF/LMI_DyM2a/0.002/mag(grad(Ue))

    From function Foam::Field<Type>::Field(const Foam::word&, const Foam::dictionary&, Foam::label) [with Type = double; Foam::label = int]
    in file /home/m/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/Field.C at line 219.

End
How can I sample???
mcfdma is offline   Reply With Quote

Reply

Tags
amr, sampledict


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] snappyHexMesh sticking point natty_king OpenFOAM Meshing & Mesh Conversion 11 February 20, 2024 10:12
[snappyHexMesh] Error snappyhexmesh - Multiple outside loops avinashjagdale OpenFOAM Meshing & Mesh Conversion 53 March 8, 2019 10:42
[snappyHexMesh] Snappy Hex Mesh - issue with smoothness of the model edges olek.warc OpenFOAM Meshing & Mesh Conversion 1 August 31, 2018 12:31
[snappyHexMesh] SnappyHexMesh for internal Flow vishwa OpenFOAM Meshing & Mesh Conversion 24 June 27, 2016 09:54
killed "snappyHexMesh" parkh32 OpenFOAM Pre-Processing 2 April 8, 2012 18:12


All times are GMT -4. The time now is 11:39.