Hi, I have questions about using the RBFMeshMotionSolver. I’m using pimpleFoam. I’ve read quite a few discussions on using the RBFMeshMotionSolver from solid4Foam with pimpleFoam.
I am interested to use RBFMeshMotionSolver to replace the laplacian solver for prescribed mesh deformation in OF with 6DOF simulation.
I tried to start off with the fluid-openfoam-rbf.zip from Displacement reading: Allow mesh motion solvers without a pointDisplacement field by solids4foam · Pull Request #241 · precice/openfoam-adapter · GitHub.
I have installed preCICE and solid4Foam.
I ran it and it completes with no error. However, when I view the case in paraview, the flap is stationary, there is no motion or deformation. Is this supposed to be so?
Next I tried to replace the laplacian withe rbf in a modified OF wingMotion tutorial. I prescribed a rotation to the airfoil. It completes without error but at the start, it seems to hang and it’s doing some initial calculation. When I view the results, similarly there’s no motion or mesh deformation.
I have attached the dynamicMeshDict and pointdisplacement. Did I do something wrong?
Hi @quarkz and @Makis
it happened to me too to see no deformation. Finally I had to recompile RBFMeshMotionSolver with precice 3, to make it work again. Unfortunately I wasn’t able to catch what was going wrong. I’ll have a look at your config files very soon and see if there are some problems. In the meantime, which version of OF and precice are you using?
Claudio
Hi,
no, I don’t think that the preCICE version matters. What I have done is to compile RBFMeshMotionSolver by itself (i.e. not with all S4F) against the current OpenFOAM version. and used it with preCICE. If this can help you, this simple case works for me with preCICE 3 and OpenFOAM 2312: test_RBF.zip (22.4 KB)
Claudio
Hi @Claudio , I tried to run the code but it hangs at:
Starting time loop
---[preciceAdapter] Loaded the OpenFOAM-preCICE adapter - v1.3.0.
---[preciceAdapter] Reading preciceDict...
---[precice] This is preCICE version 3.1.1
---[precice] Revision info: no-info [git failed to run]
---[precice] Build type: Release (without debug log)
---[precice] Configuring preCICE with configuration "../precice-config.xml"
---[precice] I am participant "Fluid"
---[precice] Setting up primary communication to coupling partner/s
May I supposed to run the solid-calculix folder too?
However, since I don’t have calculix, it gives an error:
(base) user:solid-calculix$ ./run.sh
./run.sh: 14: ccx_preCICE: not found
Is it possible to configure it not to use calculix as I require a prescribed deformation.
I tried to remove the preCICE_Adapter in controlDict and it ran, but w/o deformation.
Hi @Claudio, I have installed calculix and re-tested the case. It’s working perfectly. However, I guess u may have misunderstood my qn. I ran another case with solid4Foam and it’s also working. But I don’t need FSI for the moment. I just want to deform the grid using RBF in a prescribed way. Is there an example of how it can be done?
Hi @quarkz, good to hear that. Unfortunately I don’t have anything ready to share at the moment. Why don’t you use the rigid_body_solver from the quickstart? You may configure it so that you impose the fluid mesh deformation from the “solid” (one way coupling or something like that, if this is your goal).
Btw I am planning to do something like this in the near future, because I am interested in assessing RBFMeshMotionsolver as I am not able to make it work with large meshes. If you are interested we might stay in touch.
claudio
Hi @Claudio Thanks for the update. Ya, I’ll give it a try. Btw, you mention that RBF doesn’t work with large meshes. May I know what’s the size? Do stay in touch.
It doesn’t work in the sense that it tends to eat a lot of memory. In my case, with a medium workstation, 1M cells might be way too much to handle.
Claudio
Hi @quarkz indeed it is not very big. It happened to me to run fast into “std::bad_alloc” when initializing. I know that there are ways to reduce memory usage. For example you could use coarsening, but I was not able to find configurations using it effectively, also because I miss some information regarding many parameters of RBF. Please let me know if you find interesting configurations.
Claudio
HI, I followed these steps and the bin folder was created but there was no ccx_preCICE file in it, infact, it was the only file that was missing
I also get the same error as quarkz
were also installed first.
Then I made calculix by running make -j 4 in src and proceeded to download the adapter from the site, I have made a new post about it as well, detailing the problem