No of elements in OpenFOAM2Elmer.F90
Posted: 13 Feb 2022, 18:58
Good Sunday
There is a check around line 424 in that file:
IF (totElementsFound < nElements) THEN
CALL Fatal('OpenFOAM2ElmerSolver','Elmer #'//TRIM(I2S(myLocalRank))//' has ' &
//TRIM(I2S(nElements))//' elements, OpenFOAM found '//TRIM(I2S(totElementsFound)))
END IF
Why should it be fatal if OpenFOAM found a lesser amount of elements than Elmer has ? After all, it could be very well be that OpenFOAM is solving a physical problem that only requires a smaller mesh. Moreover, that problem may only need to compute a solution on a subset of the spatial domain that Elmer is working on. It was my understanding that EOF is able to interpolate field variables when the Elmer and OpenFOAM meshes are completely different.
Take care
Marc
There is a check around line 424 in that file:
IF (totElementsFound < nElements) THEN
CALL Fatal('OpenFOAM2ElmerSolver','Elmer #'//TRIM(I2S(myLocalRank))//' has ' &
//TRIM(I2S(nElements))//' elements, OpenFOAM found '//TRIM(I2S(totElementsFound)))
END IF
Why should it be fatal if OpenFOAM found a lesser amount of elements than Elmer has ? After all, it could be very well be that OpenFOAM is solving a physical problem that only requires a smaller mesh. Moreover, that problem may only need to compute a solution on a subset of the spatial domain that Elmer is working on. It was my understanding that EOF is able to interpolate field variables when the Elmer and OpenFOAM meshes are completely different.
Take care
Marc