[Nek5000-users] par file and moving mesh
nek5000-users at lists.mcs.anl.gov
nek5000-users at lists.mcs.anl.gov
Fri Oct 27 08:18:41 CDT 2017
If you provide a link to download your case I can have a look.
Cheers,
Stefan
-----Original message-----
> From:nek5000-users at lists.mcs.anl.gov <nek5000-users at lists.mcs.anl.gov>
> Sent: Friday 27th October 2017 15:13
> To: nek5000-users at lists.mcs.anl.gov
> Cc: Merzari, Elia <emerzari at anl.gov>
> Subject: Re: [Nek5000-users] par file and moving mesh
>
> One more update on this matter. I generated a mesh with cubit that I exported in a exodus format and in a msh format. I then did the following:
> - in the first case, I used the exo2nek script to generate the re2 file, and run Nek5000 to get a rea file by calling ‘gen_rea’.
> - I used the msh2nek python script to generate a rea file.
> <br class="" />
> My geometry has a moving boundary conditions and the mesh motion is solved by Nek5000 in my current setting.
> <br class="" />
> I observe the following when running all above rea files with the same Nek5000 compiled usr file:
> - when running the Nek5000 session with the re2 file generated from the exo2nek script, the mesh is static when visualized with Visit. The log file shows that Nek5000 is solving for the
> mesh motion, though.
> - when running the Nek5000 session with the rea file generated with the gen_rea call, the mesh moves when visualized with Visit, but Nek5000 exits the run and writes a file named ‘xyz***’.
> - when running the Nek5000 session with the rea file generated with the python script, the mesh moves, the solution looks good and Nek5000 runs all the way to the final time specified
> in the rea file.
> <br class="" />
> When running the Nek5000 session with the re2 file generated with the exo2nek script, I set the boundary condition in the usrdat subroutine. At first glance, it seems to be the right approach since the boundary conditions are correctly labeled
> in the rea file that is generated with gen_rea. But because Nek5000 exits with an error message when I run the rea file coming from the gen_rea call, I am not so sure. Should I be setting the boundary conditions at a different initialization stage?
> <br class="" />
> Note that I used the exo2nek script for other geometries that have more common boundary conditions (v and O), and I did not run into any issue. This problem seems to be specific to the moving mesh and boundary conditions capabilities, I think.
> <br class="" />
> Once again, I would appreciate any help on this matter.
> <br class="" />
> Thanks,
> <br class="" />
> Marco
> <br class="" />
> On Oct 24, 2017, at 12:55 PM, Delchini, Marc-Olivier G. <delchinimg at ornl.gov <mailto:delchinimg at ornl.gov>> wrote:
> <br class="Apple-interchange-newline" />
> I specify the boundary conditions in the usr file using the following piece of code:
> <br class="" />
> do i=1,nelt
> do j=1,2*ndim
> if(bc(5,j,i,1).eq.1) then
> cbc(j,i,1)='mv '
> elseif(bc(5,j,i,1).eq.2) then
> cbc(j,i,1)='W '
> elseif(bc(5,j,i,1).eq.3) then
> cbc(j,i,1)='W '
> elseif(bc(5,j,i,1).eq.4) then
> cbc(j,i,1)='W '
> else
> cbc(j,i,1)='E '
> endif
> enddo
> enddo
> <br class="" />
> Marco
> <br class="" />
> On Oct 24, 2017, at 12:39 PM,
> nek5000-users at lists.mcs.anl.gov <mailto:nek5000-users at lists.mcs.anl.gov> wrote:
> <br class="Apple-interchange-newline" />
> How do you specify the BC in the exo case?
> <br class="" />
> On 24 Oct 2017, at 18:05, "nek5000-users at lists.mcs.anl.gov <mailto:nek5000-users at lists.mcs.anl.gov>" <nek5000-users at lists.mcs.anl.gov <mailto:nek5000-users at lists.mcs.anl.gov>> wrote:<br class="" />
> <br class="" />
> Stefan,<br class="" />
> <br class="" />
> thank for your reply.<br class="" />
> <br class="" />
> My mesh moves if I write the mesh in a rea file. If I use the mesh generated from exo2nek script, the mesh does not move.<br class="" />
> <br class="" />
> Marco<br class="" />
> <br class="" />
> > On Oct 24, 2017, at 11:59 AM,
> nek5000-users at lists.mcs.anl.gov <mailto:nek5000-users at lists.mcs.anl.gov> wrote:<br class="" />
> > <br class="" />
> > Marco,<br class="" />
> > <br class="" />
> > please note that the .par file is still experimental and not as robust as the good old .rea.<br class="" />
> > It looks like I forgot to support the viscosity and tolerance for the mesh elasticity solver - so the default values 0.4 and 0.02 will be used. Anyway, your mesh should be moving unless there is something wrong with the BC in the exo case.<br class="" />
> > <br class="" />
> > Cheers,<br class="" />
> > Stefan<br class="" />
> > <br class="" />
> > -----Original message-----<br class="" />
> >> From:nek5000-users at lists.mcs.anl.gov <mailto:nek5000-users at lists.mcs.anl.gov> <nek5000-users at lists.mcs.anl.gov <mailto:nek5000-users at lists.mcs.anl.gov>><br class="" />
> >> Sent: Monday 23rd October 2017 22:15<br class="" />
> >> To: nek5000-users at lists.mcs.anl.gov <mailto:nek5000-users at lists.mcs.anl.gov><br class="" />
> >> Subject: Re: [Nek5000-users] par file and moving mesh<br class="" />
> >> <br class="" />
> >> Hi all,<br class="" />
> >> <br class="" />
> >> I have an update on this issue.<br class="" />
> >> <br class="" />
> >> The mesh I am using was generated in Cubit and then converted to the Nek5000 re2 format using the exo2nek script. I call the function ‘gen_rea’ to make Nek5000 write the mesh in a rea file. My mesh has a moving boundary condition, and the mesh motion is
> computed by the ALE solver. I then do the following:<br class="" />
> >> 1) I run my session using the mesh read from the re2 file that comes from the exo2nek script.<br class="" />
> >> 2) I run my session using the rea file that was generated by the function call ‘gen_rea'.<br class="" />
> >> <br class="" />
> >> In the first case, the output file does not show the mesh motion even though the velocity profile seems correct. In the second case, the mesh motion shows in the output file when I visualize the solution with Visit.<br class="" />
> >> <br class="" />
> >> Is this a bug, or simply a misuse of the exo2nek script?<br class="" />
> >> <br class="" />
> >> Marco<br class="" />
> >> <br class="" />
> >>> On Oct 19, 2017, at 8:51 AM,
> nek5000-users at lists.mcs.anl.gov <mailto:nek5000-users at lists.mcs.anl.gov> <Nek5000-users at lists.mcs.anl.gov <mailto:Nek5000-users at lists.mcs.anl.gov>> wrote:<br class="" />
> >>> <br class="" />
> >>> Hi all,<br class="" />
> >>> <br class="" />
> >>> I am trying to switch from a rea file to a par file and I am having difficulties with the moving mesh capabilities. When visualizing the numerical solution, the mesh is not moving, whereas it was moving with a previous version of Nek5000.<br class="" />
> >>> <br class="" />
> >>> I copied the par file from the my_cyl examples as a start point. The main different between my session and the mv_cyl session is the way the mesh motion is handled. I believe the mesh velocity is provided by the user through a function, whereas in my session
> the mesh velocity is solved for.<br class="" />
> >>> <br class="" />
> >>> Below is the par file I am currently using:<br class="" />
> >>> <br class="" />
> >>> #<br class="" />
> >>> # nek parameter file<br class="" />
> >>> #<br class="" />
> >>> [GENERAL]<br class="" />
> >>> #startFrom = restart.fld<br class="" />
> >>> stopAt = numSteps<br class="" />
> >>> endTime = 0<br class="" />
> >>> numSteps = 1000<br class="" />
> >>> <br class="" />
> >>> dt = 1e-03<br class="" />
> >>> timeStepper = bdf #bdf #char #steady<br class="" />
> >>> tOrder = 3<br class="" />
> >>> variableDt = no<br class="" />
> >>> maxCFL = 2.0<br class="" />
> >>> <br class="" />
> >>> writeControl = timeStep #runTime<br class="" />
> >>> writeInterval = 50<br class="" />
> >>> <br class="" />
> >>> dealiasing = yes<br class="" />
> >>> userParam01 = 1.16<br class="" />
> >>> userParam02 = 1.8550800E-05<br class="" />
> >>> <br class="" />
> >>> [PROBLEMTYPE]<br class="" />
> >>> lowMachNumber = no<br class="" />
> >>> variableProperties = yes<br class="" />
> >>> dp0dt = no<br class="" />
> >>> <br class="" />
> >>> [MESH]<br class="" />
> >>> motion = yes<br class="" />
> >>> meshVelocity = no<br class="" />
> >>> <br class="" />
> >>> [PRESSURE]<br class="" />
> >>> residualTol = 1e-10<br class="" />
> >>> residualProj = no<br class="" />
> >>> #preconditioner = amg<br class="" />
> >>> <br class="" />
> >>> [VELOCITY]<br class="" />
> >>> residualTol = 1e-12<br class="" />
> >>> residualProj = no<br class="" />
> >>> <br class="" />
> >>> <br class="" />
> >>> Any help will be appreciated.<br class="" />
> >>> <br class="" />
> >>> Thanks,<br class="" />
> >>> <br class="" />
> >>> Marco<br class="" />
> >>> <br class="" />
> >>> _______________________________________________<br class="" />
> >>> Nek5000-users mailing list<br class="" />
> >>> Nek5000-users at lists.mcs.anl.gov <mailto:Nek5000-users at lists.mcs.anl.gov><br class="" />
> >>> https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users <https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users><br class="" />
> >>> <br class="" />
> >> <br class="" />
> >> _______________________________________________<br class="" />
> >> Nek5000-users mailing list<br class="" />
> >> Nek5000-users at lists.mcs.anl.gov <mailto:Nek5000-users at lists.mcs.anl.gov><br class="" />
> >> https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users <https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users><br class="" />
> >> <br class="" />
> > _______________________________________________<br class="" />
> > Nek5000-users mailing list<br class="" />
> > Nek5000-users at lists.mcs.anl.gov <mailto:Nek5000-users at lists.mcs.anl.gov><br class="" />
> > https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users <https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users><br class="" />
> <br class="" />
> _______________________________________________<br class="" />
> Nek5000-users mailing list<br class="" />
> Nek5000-users at lists.mcs.anl.gov <mailto:Nek5000-users at lists.mcs.anl.gov><br class="" />
> https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users <https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users><br class="" />
> _______________________________________________<br class="" />
> Nek5000-users mailing list<br class="" />
> Nek5000-users at lists.mcs.anl.gov <mailto:Nek5000-users at lists.mcs.anl.gov><br class="" />
> https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users <https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users><br class="" />
> <br class="" />
> <br class="" />
> _______________________________________________
> Nek5000-users mailing list
> Nek5000-users at lists.mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users
More information about the Nek5000-users
mailing list