jvencels / EOF-Library

Efficient two-way coupling between Elmer FEM and OpenFOAM
https://eof-library.com/
GNU General Public License v3.0
70 stars 25 forks source link

error about missmach meshes #6

Closed EduardVinter closed 4 years ago

EduardVinter commented 4 years ago

EOF aborts calculation with error message about mismatch elements number of two meshes.

ERROR:: OpenFOAM2ElmerSolver: Elmer #0 has 4641 elements, OpenFOAM found 4612
OpenFOAM2Elmer Init = 0.2459315 s

But in Salome I have the same mesh in the melt region with equal number of elements for Elmer and OFoam.

Moreover, test cases work without any errors.

jvencels commented 4 years ago

Please send me the case.

jvencels commented 3 years ago

Hi Martins,

EOF-Library cannot extrapolate data outside the computation domain. Most often this error happens when curved surfaces are meshed with different algorithms or mesh sizes.

If this is the case, try 1) choosing nodal interpolation algorithm (applicable only to OpenFOAM2Elmer direction) 2) Modify mesh, its refinement etc.

In very rare cases we make domains (those that are coupled between Elmer and penFOAM) of different size by purpose and just disable (comment out) that error message.

Juris

On 23.05.21 14:16, MartinKlevs wrote:

Hello. How was this problem solved? I have the same issue.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/jvencels/EOF-Library/issues/6#issuecomment-846545965, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABHP7QJLQ5SQX67TTUSNMODTPDPZ3ANCNFSM4L4BP3WQ.

MartinKlevs commented 3 years ago

What do i need to comment out to surpress this error? How does this ignored error affect the simulation?

jvencels commented 3 years ago

This is safety feature and it has to be there to inform about mesh mismatch. If user removes or comments these lines of code (that cause this error) then it is up to the user to decide whether it affects simulation or not.

On 23.05.21 16:59, MartinKlevs wrote:

What do i need to comment out to surpress this error? How does this ignored error affect the simulation?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/jvencels/EOF-Library/issues/6#issuecomment-846567619, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABHP7QNRPW272TH7S4RCFADTPEC2LANCNFSM4L4BP3WQ.