openfoam 10 中怎么按某场的特征动态加密网格?
-
@JqBu 找到个of官方算例动态加密网格的,是下面这样,不过在我的算例里还是跑不了,贴出来记录一下把
topoChanger { type refiner; libs ("libfvMeshTopoChangers.so"); // How often to refine refineInterval 1; // Field to be refinement on field alpha.water; // Refine field in between lower..upper lowerRefineLevel 0.001; upperRefineLevel 0.999; // Have slower than 2:1 refinement nBufferLayers 1; // Refine cells only up to maxRefinement levels maxRefinement 2; // Stop refinement if maxCells reached maxCells 200000; // Flux field and corresponding velocity field. Fluxes on changed // faces get recalculated by interpolating the velocity. Use 'none' // on surfaceScalarFields that do not need to be reinterpolated. correctFluxes ( (phi none) (nHatf none) (rhoPhi none) (alphaPhi.water none) (ghf none) ); // Write the refinement level as a volScalarField dumpLevel true; }
-
@JqBu 报错如下,贴出来给大家看看,有没有大佬指教一下呢```
Courant Number mean: 0.0440313 max: 0.39994
Interface Courant Number mean: 0.00208161 max: 0.39994
deltaT = 1.54321e-06
Selected 1971 cells for refinement out of 125250.
Refined from 125250 to 139047 cells.
#0 Foam::error::printStack(Foam::Ostream&) at ??:?
#1 Foam::sigSegv::sigHandler(int) at ??:?
#2 ? in "/lib/x86_64-linux-gnu/libc.so.6"
#3 Foam::fvMeshTopoChangers::refiner::refineUfs(Foam::HashSet<int, Foam::Hash<int> > const&, Foam::polyTopoChangeMap const&) at ??:?
#4 Foam::fvMeshTopoChangers::refiner::refine(Foam::List<int> const&) at ??:?
#5 Foam::fvMeshTopoChangers::refiner::update() at ??:?
#6 Foam::fvMesh::update() at ??:?
#7 ? in "/opt/openfoam10/platforms/linux64GccDPInt32Opt/bin/interFoam"
#8 ? in "/lib/x86_64-linux-gnu/libc.so.6"
#9 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#10 ? in "/opt/openfoam10/platforms/linux64GccDPInt32Opt/bin/interFoam"