Open TobiasRasp opened 8 years ago
Hi Kai,
I tried to test the new release with my example that is about a bubble floating through a channel driven by a pressure gradient (see attached below. Again I had to change the file extension from py to txt for uploading purposes).
However, it failed! The error message for the IO wrapper is:
--> FOAM FATAL IO ERROR: keyword type is undefined in dictionary "IStringStream.sourceFile.inlet" file: IStringStream.sourceFile.inlet From function dictionary::lookupEntry(const word&, bool, bool) const in file db/dictionary/dictionary.C at line 437. FOAM exiting
Same for the internal wrapper, but with a different error message:
Traceback (most recent call last): File "bubbles_V2_phil.py", line 91, in <module> mesh_inside_wrapper.update_cells(updated_cells) File "/W5/ras/SimPhoNy/OpenFoam/Wrapper-Tests/Test_ContAngle/simphony-openfoam/foam_internalwrapper/foam_mesh.py", line 439, in update_cells create_dummy_celldata(self.name, dataName) File "/W5/ras/SimPhoNy/OpenFoam/Wrapper-Tests/Test_ContAngle/simphony-openfoam/foam_internalwrapper/mesh_utils.py", line 56, in create_dummy_celldata dimension) RuntimeError: request for volScalarField p_rgh from objectRegistry region0 failed available objects of type volScalarField are 0()
By the way, also the dahl(_rel_vel) examples crashed in my case for both IO and internal, which is true also for the master branch! Can you please check that as well. Just to make sure that it is not due to my installation.
Hi Tobias,
wrapper did not had flowRate BC implemented. I added that and pushed changes to branch. I'll look at that dahl example later. It might be something to do with the fixedFluxPressure BC...
OK, thanks! I'll check the changes on Monday since I'm off now for the weekend already.
Oh, you are right! I additionally added the flowRate BC to get my example running. Thanks a lot for adding it to the new repository version! So, the error message was due to this extra change from my side. My example is running now with the current version also on my machine!
In order to deal with contact angle boundary conditions in the OpenFoam wrapper (necessary for task 5.4), I propose to add two points to the code:
to the volumeFractionBCs block of modify_fields in foam_dicts.py allows the user to apply contact angle BCs at the walls by setting e.g.
The naming "wetting angle" can be adapted and was just my choice for testing.