CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   How to generate a new 6DoF.dat? (https://www.cfd-online.com/Forums/openfoam/109503-how-generate-new-6dof-dat.html)

julmh November 19, 2012 12:48

How to generate a new 6DoF.dat?
 
Hi.
I am a student working with a sloshing case in interDyMFoam. I have changed values in the file gen6DoF.C and now I want to generate a new 6DoF.dat file. Does anyone know how to do this?

Regards Julie

wyldckat November 19, 2012 18:02

Greetings Julie,

Very simple - all of the following commands assume that you are working in a terminal that has OpenFOAM ready to be used and that you are already located in your own copy of the original tutorial case "multiphase/interDyMFoam/ras/sloshingTank3D6DoF":
  1. Build the custom utility by running:
    Code:

    wmake gen6DoF
    Or if you are already working from within the "gen6DoF" folder, simply run:
    Code:

    wmake
  2. Then go into the "constant" folder and run the utility, like this:
    Code:

    cd constant
    gen6DoF

    This of course assumes that your were working from the folder "sloshingTank3D6DoF".
  3. You can now go back the the case folder and run Allrun:
    Code:

    cd ..
    ./Allrun

And that's it!


Best regards,
Bruno

julmh November 20, 2012 05:37

Thanks Bruno!
I have generated the file and everything works fine:)

Regards Julie


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