CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Mesh Utilities

dynamicRefineFvMesh with simpleFoam crash

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   April 12, 2017, 10:51
Default dynamicRefineFvMesh with simpleFoam crash
New Member
Join Date: Oct 2016
Posts: 21
Rep Power: 3
verboomj is on a distinguished road

For the purpose of my solver, I want to refine the mesh at a certain edge, that is found by my topology optimization. This can be seen in the attached figure.

After some research, dynamicRefineFvMesh seems to be the 'go to' class. I've implemented the mesh.update() command in my simplFoam loop, similar to the pimpleDyMFoam implementation:

        fvc::makeAbsolute(phi, U);

        Info<< "Time = " << runTime.timeName() << nl << endl;

        magAlphaGrad = mag(fvc::grad(alpha));
        counter += 1;
It compiles and appears to work, but when I run a case it crashes at the moment it wants to refine the mesh.

Time = 2

Selected 468 cells for refinement out of 120000.
Refined from 120000 to 123276 cells.
Selected 0 split points out of a possible 468.
We're sorry, but the application crashed and safe stack tracing isn't available in this current implementation of blueCFD-Core patches for OpenFOAM.
The dynamicMeshDict file is rather standard as compared to exisiting tutorials for this dynamicRefineFvMesh.

Any ideas where I should look, regarding this crash?
Attached Images
File Type: png alphaSignGrad.PNG (35.8 KB, 14 views)
verboomj is offline   Reply With Quote


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
simpleFoam crash fast! izna OpenFOAM Running, Solving & CFD 28 February 3, 2017 14:24
SimpleFoam crash at first loop alvariten OpenFOAM Running, Solving & CFD 5 August 17, 2015 07:17
Simulation crash with dynamicRefineFvMesh and kOmegaSST - OF 2.3.x nathanael OpenFOAM Running, Solving & CFD 4 June 29, 2014 17:02
Grading leads to simpleFoam crash yanyanh OpenFOAM Native Meshers: blockMesh 3 March 2, 2014 12:08
simpleFoam crash -> How to solve tH3f0rC3 OpenFOAM 4 May 12, 2011 07:07

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