nnmrec / fastFlume

tutorial for the SOWFA large-eddy-simulation code to model hydrokinetic turbines
7 stars 6 forks source link

fastFlume and SOWFA #6

Open arturojortega opened 6 years ago

arturojortega commented 6 years ago

Dear DCSale

I am just starting with fastFlume. Please, to work with fastFlume is necessary first install and configure SOWFA? Is it necessary to make some special link between these two programs?

Cordially Arturo

dcsale commented 6 years ago

hello Arturo,

Yes you will need to already install SOWFA. Furthermore, I had my own branch of SOWFA which you can clone here: https://github.com/dcsale/SOWFA

The fastFlume input files have some differences compared to the NREL master branch of SOWFA. For example, I added the elliptical-wing epsilon modification and turbulent inflow condition, which requires to compile this fork of SOWFA (link above) and also configure your OpenFOAM to use the LEMOS library. If you want to use the master NREL branch of SOWFA and OpenFOAM then you will probably need to modify the fastFlume input files accordingly. A little extra work but easily possible. Let me know if you have more questions.

Why are you interested in fastFlume instead of NREL's master branch?

Best Regards, Danny

On Mon, Jul 23, 2018 at 11:44 AM arturojortega notifications@github.com wrote:

Dear DCSale

I am just starting with fastFlume. Please, to work with fastFlume is necessary first install and configure SOWFA? Is it necessary to make some special link between these two programs?

Cordially Arturo

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nnmrec/fastFlume/issues/6, or mute the thread https://github.com/notifications/unsubscribe-auth/ADoMoVIvDjzQdhzT_hytzBe53k6c0ulpks5uJguOgaJpZM4Vbaf9 .

arturojortega commented 6 years ago

Hello Danny

Thank for your quick replay.

Yes, only now I realize that you have a version of SOWFA already with a mirror of fastFlume: https://github.com/dcsale/SOWFA I will use that for my research : )

Please, could you confirm which version of OpenFOAM I should use in order to run your model?

Cordially, Arturo

dcsale commented 6 years ago

I was using OpenFOAM v2.4.x compiled with LEMOS library https://github.com/LEMOS-Rostock/LEMOS-2.4.x

LEMOS library is only needed if you use the turbulent inflow boundary condition. I think OpenFOAM (newer versions) has a similar turbulent inflow condition, and the NREL master branch of SOWFA has examples of how to use it ... I think it is similar to LEMOS method anyways.

Good luck with your research, happy to help if I can.

Best Regards, Danny

On Tue, Jul 24, 2018 at 10:33 AM arturojortega notifications@github.com wrote:

Hello Danny

Thank for your quick replay.

Yes, only now I realize that you have a version of SOWFA already with a mirror of fastFlume: https://github.com/dcsale/SOWFA I will use that for my research : )

Please, could you confirm which version of OpenFOAM I should use in order to run your model?

Cordially, Arturo

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/nnmrec/fastFlume/issues/6#issuecomment-407470277, or mute the thread https://github.com/notifications/unsubscribe-auth/ADoMoTVAzZlfGPP66vUxqQWd44W0SMyYks5uJ0xjgaJpZM4Vbaf9 .

arturojortega commented 6 years ago

Hello Danny

I was able to install the LEMOS library which generated the solver: “pisoFoamTurbine-LEMOS-EllipticWing”.

I realized that in “run.solver” there were previously used the solvers: “pisoFoamTurbine-LEMOS” and “pisoFoamTurbine”. Please, how can I generate those solvers?

Cordially, Arturo

dcsale commented 6 years ago

hi Arturo,

To re-generate those other solvers you will have to edit the SOWFA make files:

Note, you can simply change the name of the compiled solver here: https://github.com/dcsale/SOWFA/blob/master/applications/solvers/incompressible/windEnergy/pisoFoamTurbine/Make/files

And remove the reference to LEMOS here: https://github.com/dcsale/SOWFA/blob/master/applications/solvers/incompressible/windEnergy/pisoFoamTurbine/Make/options

If you want to compile without the Elliptical wing epsilon mod ... you will have to checkout older commits from the github https://github.com/dcsale/SOWFA but otherwise you can just set epsilon to equal value at each blade radius, and that way should recover the same behavior as NREL's SOWFA version.

Hope that helps.

Danny

On Sat, Jul 28, 2018 at 2:53 PM arturojortega notifications@github.com wrote:

Hello Danny

I was able to install the LEMOS library which generated the solver: “pisoFoamTurbine-LEMOS-EllipticWing”.

I realized that in “run.solver” there were previously used the solvers: “pisoFoamTurbine-LEMOS” and “pisoFoamTurbine”. Please, how can I generate those solvers?

Cordially, Arturo

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/nnmrec/fastFlume/issues/6#issuecomment-408634254, or mute the thread https://github.com/notifications/unsubscribe-auth/ADoMobNipH5sTIYZKff7xJfJesKg6YfIks5uLM9ngaJpZM4Vbaf9 .

arturojortega commented 6 years ago

Hello Danny

I am trying to run the fastFlume using Grid Engine to run it in parallel using a clustering network. Please, maybe do you have an example for that? or please, how I can run it in serial? Is it necessary to have a large disk storage capacity for the data generated?

Thanks in advance, Arturo

dcsale commented 6 years ago

Hi Arturo,

I have never seen Grid Engine before, I have examples for PBS and SLURM ... but it should be hopefully easy to run on Grid Engine.

To run in parallel, I think only need to change this file (this was for PBS -- you will need to convert similar commands for Grid Engine). https://github.com/nnmrec/fastFlume/blob/master/submit-job-Hyak.sh

To run in serial you should only need the "run.all" command https://github.com/nnmrec/fastFlume/blob/master/run.all

What does your Grid Engine script look like? Regarding disk storage, a "small run" might need 200GB (for 1-2 seconds of simulation time), and up to several TeraBytes for longer run-times and post-processing results.

On Mon, Aug 6, 2018 at 1:10 PM arturojortega notifications@github.com wrote:

Hello Danny

I am trying to run the fastFlume using Grid Engine to run it in parallel using a clustering network. Please, maybe do you have an example for that? or please, how I can run it in serial? Is it necessary to have a large disk storage capacity for the data generated?

Thanks in advance, Arturo

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/nnmrec/fastFlume/issues/6#issuecomment-410820420, or mute the thread https://github.com/notifications/unsubscribe-auth/ADoMoVUisG7XMsn9E-RN25YM6w9b2teqks5uOJS-gaJpZM4Vbaf9 .

arturojortega commented 6 years ago

Dear Danny

Hopefully, I was able to run the fastFlume model in parallel :).

I tried to see the results using Paraview. For me, the results only showed the last minute of the simulation. I was not able to see the turbine working.

In order to continue understanding the model, I would like to do some simulations and see the dynamics of the turbine against the environment. Please, how I could do that?

I realize you were using VisIt for making the movies. Please, what is the relation of the directories VTK and sequencedVTK? I think those are the only directories I need to make movies?

Cordially, Arturo

dcsale commented 6 years ago

Hi Arturo, (this message failed to send earlier because I tried to attach some movies)

hi Arturo,

It is quite expensive to make a movie from SOWFA, so the compromise I made was as follows:

I will upload some movies to GitHub as an example ...

On Fri, Aug 17, 2018 at 10:08 AM Danny Sale sale.danny@gmail.com wrote:

hi Arturo,

It is quite expensive to make a movie from SOWFA, so the compromise I made was as follows:

  • The VTK folder contains the full 3D fields from OpenFOAM at every time step (recombines the parallel decomposed fields every X number of timesteps determined in the system/controlDict file) ... it is too expensive to save all of this data so I only save the last 2 or 3 current timesteps and delete old timesteps https://github.com/nnmrec/fastFlume/blob/master/run.post-process

  • The sequencedVTK folder contains samples of the full 3D fields from the VTK folder ... using the OpenFOAM "sample" utility to make things like point/line probes, 2D slice plane, etc. To further save time & storage space you do not need to save all the variables that OpenFOAM provides, so just save important things like velocity, TKE, etc. (for example, you can reconstruct vorticity from the velocity field in VisIt/ParaView and save more storage/time) https://github.com/nnmrec/fastFlume/blob/master/system/sampleDict

  • The sequencedVTK folder should be able to read by VisIt or ParaView, for example, you can load the 2D-slice planes (or other sample type) and then VisIt/ParaView GUI have option to save as a sequence of PNG images. I had another script to render the PNG images into a movie (suggest .mp4 or .webm format for movies for best compression and visual quality). https://github.com/nnmrec/fastFlume/blob/master/run.post-post-process https://github.com/nnmrec/fastFlume/blob/master/utilities/make-movie.sh

Here some example movies (attached): This movie I noticed some strange blobs moving upstream -- this told me I needed to adjust the timestep integration scheme, weighted more towards Backward Euler and that removed the numerical artifact. Another example with the turbulent inflow. Also a 3D movie, hah!

On Thu, Aug 16, 2018 at 10:20 AM arturojortega notifications@github.com wrote:

Dear Danny

Hopefully, I was able to run the fastFlume model in parallel :).

I tried to see the results using Paraview. For me, the results only showed the last minute of the simulation. I was not able to see the turbine working.

In order to continue understanding the model, I would like to do some simulations and see the dynamics of the turbine against the environment. Please, how I could do that?

I realize you were using VisIt for making the movies. Please, what is the relation of the directories VTK and sequencedVTK? I think those are the only directories I need to make movies?

Cordially, Arturo

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/nnmrec/fastFlume/issues/6#issuecomment-413602964, or mute the thread https://github.com/notifications/unsubscribe-auth/ADoMoWHSZcUKQ1LdKercci_JjuoE8ylxks5uRZvpgaJpZM4Vbaf9 .