|
[Sponsors] |
Cloud::storeGlobalPositions has not been called - How to call it? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 5, 2019, 07:04 |
Cloud::storeGlobalPositions has not been called - How to call it?
|
#1 |
Member
Rishikesh
Join Date: Apr 2016
Posts: 63
Rep Power: 10 |
I am trying to implement a coupled Lagrangian-interFoam solver in OF-6 where I want to refine the mesh in two-phase interface region using the dynamicFvRefineMesh option.
However, I encounter the following fatal error as soon as the refinement is done before first timestep. Code:
--> FOAM FATAL ERROR: Global positions are not available. Cloud::storeGlobalPositions has not been called. From function void Foam::Cloud<ParticleType>::autoMap(const Foam::mapPolyMesh&) [with ParticleType = Foam::CollidingParcel<Foam::KinematicParcel<Foam::particle> >] in file /opt/openfoam6/src/lagrangian/basic/lnInclude/Cloud.C at line 349. FOAM exiting Code:
if (pimple.turbCorr()) { turbulence->correct(); } } Info<< "Evolving "<< kinematicCloud.name() <<endl; kinematicCloud.evolve(); kinematicCloud.storeGlobalPositions(); runTime.write(); Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s" << " ClockTime = " << runTime.elapsedClockTime() << " s" << nl << endl; The function storeGlobalPositions() is defined in Cloud.H, which is referenced by basicKinematicCollidingCloud.H. If I try to call it like this: Code:
Cloud::storeGlobalPositions(); Code:
interFlow.C:161:2: error: ‘template<class ParticleType> class Foam::Cloud’ used without template parameters Cloud::storeGlobalPositions(); Code:
//Initialize basicKinematicCollidingCloud const word kinematicCloudName ( args.optionLookupOrDefault<word>("cloudName", "kinematicCloud") ); Info<< "Constructing kinematic cloud "<< kinematicCloudName <<endl; basicKinematicCollidingCloud kinematicCloud ( kinematicCloudName, rho, U, mu, g ); Last edited by mrishi; July 5, 2019 at 10:02. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Any experts on FFTW? | jinhua2015 | Main CFD Forum | 3 | May 22, 2022 19:44 |
Compiling User Fortran with CFX 14.0 on Win64 | Raijin Thunderkeg | CFX | 29 | March 9, 2016 11:45 |
writing link between two CGNS files | t.teschner | Main CFD Forum | 1 | February 4, 2014 10:26 |
reconstructParMesh not working with an axisymetric case | francesco | OpenFOAM Bugs | 4 | May 8, 2009 05:49 |
2D CFD code using SIMPLE algorithm | bfan | Main CFD Forum | 3 | June 22, 2002 22:01 |