Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenFOAM 5 fails to register pointDisplacement #123

Closed
davidscn opened this issue Mar 7, 2020 · 7 comments
Closed

OpenFOAM 5 fails to register pointDisplacement #123

davidscn opened this issue Mar 7, 2020 · 7 comments
Labels
compatibility Affecting only specific OpenFOAM / preCICE versions

Comments

@davidscn
Copy link
Member

davidscn commented Mar 7, 2020

Using the FSI module of the adapter with OpenFOAM 5 leads to the following error message:

--> FOAM Warning : 
    From function void adapterInfo(std::__cxx11::string, std::__cxx11::string)
    in file Utilities.C at line 50
    Error (deferred - will exit later) in the preCICE adapter: 

    request for pointVectorField pointDisplacement from objectRegistry region0 failed
    available objects of type pointVectorField are
0()

The error can easily be reproduced by trying to run one of the FSI tutorials. In this case, the OF-deal.II tutorials have been used.

The error does not occur for the same setup and OpenFOAM 6. I have not checked it for other OpenFOAM versions.

@davidscn davidscn added the compatibility Affecting only specific OpenFOAM / preCICE versions label Mar 7, 2020
@MakisH
Copy link
Member

MakisH commented Mar 7, 2020

This is a known issue originating from the merging of OpenFOAM solvers at OpenFOAM 6 and ?v1712?. We are getting the solver from the controlDict, where we need to define pimpleDyMFoam for older versions and pimpleFoam for newer versions.

Since we (should) support the latest OpenFOAM versions by default, and since we don't have any solver versions in the tutorials repository, we have set it to "pimpleFoam" by default. Running Allrun or runFluid shows a hint at the end.

Unless you have any better idea on how to approach this, let's just close it.

@davidscn
Copy link
Member Author

davidscn commented Mar 7, 2020

Ok I see. Maybe we should remove the removeObsoleteFolders.sh message or formulate the main oint there shorter to motivate people to read it.
Is there an option to get the version information and abort the simulation using the shell scripts before the simulation starts? I guess this would be another option. Anyway, I'm fine with closing it, if it is known.

@MakisH
Copy link
Member

MakisH commented Mar 8, 2020

If we could find a nice way to do it, of course, let's just do it. But then the issue is different ("guess the correct OpenFOAM solver") and should go into the tutorials.

But, be prepared, OpenFOAM does not have a consistent way to get the version. At least not a way that goes back until OpenFOAM 5. See also #32

@davidscn
Copy link
Member Author

davidscn commented Mar 8, 2020

Alright, for now I will close it

@davidscn davidscn closed this as completed Mar 8, 2020
@precice-bot
Copy link

This issue has been mentioned on preCICE Discourse. There might be relevant details there:

https://precice.discourse.group/t/openfoam-calculix-coupling-with-interfoam/175/4

@precice-bot
Copy link

This issue has been mentioned on preCICE Forum on Discourse. There might be relevant details there:

https://precice.discourse.group/t/openfoam-v7-cannot-find-pointdisplacement/393/1

@precice-bot
Copy link

This issue has been mentioned on preCICE Forum on Discourse. There might be relevant details there:

https://precice.discourse.group/t/request-for-pointvectorfield-pointdisplacement-from-objectregistry-region0-failed-available-objects-of-type-pointvectorfield-are-0/658/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility Affecting only specific OpenFOAM / preCICE versions
Projects
None yet
Development

No branches or pull requests

3 participants