CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   SurfaceElevation problem with dynamic mesh. (https://www.cfd-online.com/Forums/openfoam-solving/136680-surfaceelevation-problem-dynamic-mesh.html)

Michele Righi June 2, 2014 10:07

SurfaceElevation problem with dynamic mesh.
 
Hi, I have a problem with the surfaceElevation functionObject of the waves2Foam library. It doesn't work with dynamic mesh, for example with the waveDyMFoam solver. The error is:

--> FOAM FATAL ERROR:
Unknown function type surfaceElevation

I've tried a lot of things but none work, could someone help me please?

Thank you!

Michele

blaise June 27, 2018 03:48

Hi Michele,

did you solve that problem? I just stumbled over it myself and could not figure out a solution yet.

Thanks,

Pascal.
--

Michele Righi June 27, 2018 04:55

Hi, no sorry I didn't solve the problem..good luck!

blaise June 27, 2018 07:42

Hi Michele,

I was to quick with asking, and the solution is in fact rather simple (haha, once you know, it is easy to say ;-)). Just in case you are still interested: One needs to insert the library to be used in the controlDict:

Code:

... controlDict stuff...

libs
(
"libwaves2FoamSampling.so"
);

Then the sampling functions are known to waveDyMFoam, and you can sample the wave heights even there.

Cheers,

Pascal.
--


All times are GMT -4. The time now is 00:21.