CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [waves2Foam] Building of waveDyMFoam under foam-extend-4.0 (https://www.cfd-online.com/Forums/openfoam-community-contributions/205690-building-wavedymfoam-under-foam-extend-4-0-a.html)

blaise January 15, 2018 06:33

Building of waveDyMFoam under foam-extend-4.0
 
1 Attachment(s)
Hello all,

I am trying to build waveFoam with dynamic mesh functionality (waveDyMFoam) under foam-extend-4.0. waves2Foam svn checkout is from 2018-01-09). I am following the instructions in Niels manual but I am unsure if I did things right as I am not proficient enough with the theory and the coding in OpenFOAM. As far as I understood things, I had to compare the changes that were applied to interFoam to create waveFoam from it, and incorporate these changes to interDyMFoam.

I attach my solution, which compiles without errors. I know that this does not mean the solver will work correctly. Could someone be so kind as to check the modified code and tell me if something is wrong?! I am especially unsure about pEqn.H (treatment of phi and the pimple correction loop).

The modifications are marked with "PAmod" and "PAadd" - unfortunately the code does not get more readable by it - apologies!

Any hint is appreciated.

Thank you very much!

Best regards,

Pascal.
--

blaise January 15, 2018 08:34

Correction in code
 
1 Attachment(s)
Hello,

this is an update to my previous code alteration. Please consider the previous attachment as obsolete.

Regards,

Pascal.
--

liuxinsan March 11, 2024 04:43

in .c file
maybe u forgot something in the last line

// Close down the external wave forcing in a nice manner
externalWave->close();


All times are GMT -4. The time now is 15:33.