NREL / SOWFA-6

34 stars 35 forks source link

Fix lidar function object #33

Closed ewquon closed 3 years ago

ewquon commented 3 years ago

Fix fvMesh cast error during construction of functionObject:

[0] --> FOAM FATAL ERROR: 
[0] Attempt to cast type time to type fvMesh
[0] 
[0]     From function To& Foam::refCast(From&) [with To = const Foam::fvMesh; From = const Foam::objectRegistry]
[0]     in file /nopt/nrel/ecom/wind/software-2020-09/OpenFOAM-6/src/OpenFOAM/lnInclude/typeInfo.H at line 114.
[0]
[0] 

Backtrace:

[0] #0  Foam::error::printStack(Foam::Ostream&) at ??:?
[0] #1  Foam::error::abort() at ??:?
[0] #2  Foam::scanningLidar::scanningLidar(Foam::word const&, Foam::objectRegistry const&, Foam::dictionary const&, bool) at ??:?
[0] #3  Foam::functionObject::adddictionaryConstructorToTable<Foam::scanningLidar>::New(Foam::word const&, Foam::Time const&, Foam::dictionary const&) at ??:?
[0] #4  Foam::functionObject::New(Foam::word const&, Foam::Time const&, Foam::dictionary const&) at ??:?
[0] #5  Foam::functionObjects::timeControl::timeControl(Foam::word const&, Foam::Time const&, Foam::dictionary const&) at ??:?
[0] #6  Foam::functionObjectList::read() at ??:?
[0] #7  Foam::Time::run() const at ??:?
...
ewquon commented 3 years ago

@mchurchf Will work with Mithu to test. Should probably apply the same changes to the spinnerLidar functionObject too.

ewquon commented 3 years ago

Update from Mithu (2021-05-03):

Looks like [the scanning lidar] is working. I checked quickly. Next week I’ll be working on it in detail

After confirming, will apply same changes to spinnerLidar class.