Re: [Nek5000-users] par file and moving mesh
Marco, please note that the .par file is still experimental and not as robust as the good old .rea. 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. Cheers, Stefan -----Original message-----
From:[email protected] <[email protected]> Sent: Monday 23rd October 2017 22:15 To: [email protected] Subject: Re: [Nek5000-users] par file and moving mesh
Hi all,
I have an update on this issue.
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: 1) I run my session using the mesh read from the re2 file that comes from the exo2nek script. 2) I run my session using the rea file that was generated by the function call ‘gen_rea'.
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.
Is this a bug, or simply a misuse of the exo2nek script?
Marco
On Oct 19, 2017, at 8:51 AM, [email protected] <[email protected]> wrote:
Hi all,
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.
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.
Below is the par file I am currently using:
# # nek parameter file # [GENERAL] #startFrom = restart.fld stopAt = numSteps endTime = 0 numSteps = 1000
dt = 1e-03 timeStepper = bdf #bdf #char #steady tOrder = 3 variableDt = no maxCFL = 2.0
writeControl = timeStep #runTime writeInterval = 50
dealiasing = yes userParam01 = 1.16 userParam02 = 1.8550800E-05
[PROBLEMTYPE] lowMachNumber = no variableProperties = yes dp0dt = no
[MESH] motion = yes meshVelocity = no
[PRESSURE] residualTol = 1e-10 residualProj = no #preconditioner = amg
[VELOCITY] residualTol = 1e-12 residualProj = no
Any help will be appreciated.
Thanks,
Marco
_______________________________________________ Nek5000-users mailing list [email protected] https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users
_______________________________________________ Nek5000-users mailing list [email protected] https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users
Stefan, thank for your reply. 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. Marco
On Oct 24, 2017, at 11:59 AM, [email protected] wrote:
Marco,
please note that the .par file is still experimental and not as robust as the good old .rea. 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.
Cheers, Stefan
-----Original message-----
From:[email protected] <[email protected]> Sent: Monday 23rd October 2017 22:15 To: [email protected] Subject: Re: [Nek5000-users] par file and moving mesh
Hi all,
I have an update on this issue.
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: 1) I run my session using the mesh read from the re2 file that comes from the exo2nek script. 2) I run my session using the rea file that was generated by the function call ‘gen_rea'.
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.
Is this a bug, or simply a misuse of the exo2nek script?
Marco
On Oct 19, 2017, at 8:51 AM, [email protected] <[email protected]> wrote:
Hi all,
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.
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.
Below is the par file I am currently using:
# # nek parameter file # [GENERAL] #startFrom = restart.fld stopAt = numSteps endTime = 0 numSteps = 1000
dt = 1e-03 timeStepper = bdf #bdf #char #steady tOrder = 3 variableDt = no maxCFL = 2.0
writeControl = timeStep #runTime writeInterval = 50
dealiasing = yes userParam01 = 1.16 userParam02 = 1.8550800E-05
[PROBLEMTYPE] lowMachNumber = no variableProperties = yes dp0dt = no
[MESH] motion = yes meshVelocity = no
[PRESSURE] residualTol = 1e-10 residualProj = no #preconditioner = amg
[VELOCITY] residualTol = 1e-12 residualProj = no
Any help will be appreciated.
Thanks,
Marco
_______________________________________________ Nek5000-users mailing list [email protected] https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users
_______________________________________________ Nek5000-users mailing list [email protected] https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users
_______________________________________________ Nek5000-users mailing list [email protected] https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users
How do you specify the BC in the exo case? On 24 Oct 2017, at 18:05, "[email protected] <mailto:[email protected]> " <[email protected] <mailto:[email protected]> > wrote: Stefan, thank for your reply. 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. Marco
On Oct 24, 2017, at 11:59 AM, [email protected] <mailto:[email protected]> wrote:
Marco,
please note that the .par file is still experimental and not as robust as the good old .rea. 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.
Cheers, Stefan
-----Original message-----
From:[email protected] <mailto:[email protected]> <[email protected] <mailto:[email protected]> > Sent: Monday 23rd October 2017 22:15 To: [email protected] <mailto:[email protected]> Subject: Re: [Nek5000-users] par file and moving mesh
Hi all,
I have an update on this issue.
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: 1) I run my session using the mesh read from the re2 file that comes from the exo2nek script. 2) I run my session using the rea file that was generated by the function call ‘gen_rea'.
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.
Is this a bug, or simply a misuse of the exo2nek script?
Marco
On Oct 19, 2017, at 8:51 AM, [email protected] <mailto:[email protected]> <[email protected] <mailto:[email protected]> > wrote:
Hi all,
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.
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.
Below is the par file I am currently using:
# # nek parameter file # [GENERAL] #start>From = restart.fld stopAt = numSteps endTime = 0 numSteps = 1000
dt = 1e-03 timeStepper = bdf #bdf #char #steady tOrder = 3 variableDt = no maxCFL = 2.0
writeControl = timeStep #runTime writeInterval = 50
dealiasing = yes userParam01 = 1.16 userParam02 = 1.8550800E-05
[PROBLEMTYPE] lowMachNumber = no variableProperties = yes dp0dt = no
[MESH] motion = yes meshVelocity = no
[PRESSURE] residualTol = 1e-10 residualProj = no #preconditioner = amg
[VELOCITY] residualTol = 1e-12 residualProj = no
Any help will be appreciated.
Thanks,
Marco
_______________________________________________ Nek5000-users mailing list [email protected] <mailto:[email protected]> https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users
_______________________________________________ Nek5000-users mailing list [email protected] <mailto:[email protected]> https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users
_______________________________________________ Nek5000-users mailing list [email protected] <mailto:[email protected]> https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users
_______________________________________________ Nek5000-users mailing list [email protected] <mailto:[email protected]> https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users
I specify the boundary conditions in the usr file using the following piece of code: 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 Marco On Oct 24, 2017, at 12:39 PM, [email protected]<mailto:[email protected]> wrote: How do you specify the BC in the exo case? On 24 Oct 2017, at 18:05, "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> wrote: Stefan, thank for your reply. 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. Marco
On Oct 24, 2017, at 11:59 AM, [email protected]<mailto:[email protected]> wrote:
Marco,
please note that the .par file is still experimental and not as robust as the good old .rea. 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.
Cheers, Stefan
-----Original message-----
From:[email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>> Sent: Monday 23rd October 2017 22:15 To: [email protected]<mailto:[email protected]> Subject: Re: [Nek5000-users] par file and moving mesh
Hi all,
I have an update on this issue.
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: 1) I run my session using the mesh read from the re2 file that comes from the exo2nek script. 2) I run my session using the rea file that was generated by the function call ‘gen_rea'.
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.
Is this a bug, or simply a misuse of the exo2nek script?
Marco
On Oct 19, 2017, at 8:51 AM, [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>> wrote:
Hi all,
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.
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.
Below is the par file I am currently using:
# # nek parameter file # [GENERAL] #startFrom = restart.fld stopAt = numSteps endTime = 0 numSteps = 1000
dt = 1e-03 timeStepper = bdf #bdf #char #steady tOrder = 3 variableDt = no maxCFL = 2.0
writeControl = timeStep #runTime writeInterval = 50
dealiasing = yes userParam01 = 1.16 userParam02 = 1.8550800E-05
[PROBLEMTYPE] lowMachNumber = no variableProperties = yes dp0dt = no
[MESH] motion = yes meshVelocity = no
[PRESSURE] residualTol = 1e-10 residualProj = no #preconditioner = amg
[VELOCITY] residualTol = 1e-12 residualProj = no
Any help will be appreciated.
Thanks,
Marco
_______________________________________________ Nek5000-users mailing list [email protected]<mailto:[email protected]> https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users
_______________________________________________ Nek5000-users mailing list [email protected]<mailto:[email protected]> https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users
_______________________________________________ Nek5000-users mailing list [email protected]<mailto:[email protected]> https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users
_______________________________________________ Nek5000-users mailing list [email protected]<mailto:[email protected]> https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users _______________________________________________ Nek5000-users mailing list [email protected]<mailto:[email protected]> https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users
participants (1)
-
nek5000-users@lists.mcs.anl.gov