Skip to content

Reply To: Grid refinement

Due to recent bot attacks we have chanced the sign-up process. If you want to participate in our forum, first register on this website and then send a message via our contact form.

Forums on OpenLB General Topics Grid refinement Reply To: Grid refinement

#10915
sfraniatte
Participant

Hello,

The sketch of my refinement domain is very simple. It is basically the spher3d example with the lines 221 and 222 which are commented. The lines are the following :
cuboidDecompositionLevel0.splitFractional(1, 1, {0.1,0.8,0.1});
cuboidDecompositionLevel0.splitFractional(3, 2, {0.1,0.8,0.1});

So, the localized refinement part is on the entire cross-section of the pipe and no longer on 80% of the cross-section.

Thanks to your respond, I understood how to solve my problem. The solution is to replace “sGeometry.rename(0,1);” by the following lines in “prepareGeometryFine” :
IndicatorCuboid3D<T> domainI(Vector<T,3>{2.5,0.5,0.5},
Vector<T,3>{0.0,0.0,0.0});
IndicatorLayer3D<T> domainLayerI(domainI, converter.getPhysDeltaX());

sGeometry.rename(0,2, domainLayerI);
sGeometry.rename(2,1, domainI);

Thanks a lot !

I will check the cell-centered approach by Rohde when I will have time.

Best regards,

Sylvain