[Nek5000-users] prenek

nek5000-users at lists.mcs.anl.gov nek5000-users at lists.mcs.anl.gov
Fri Jul 14 16:04:48 CDT 2017


Hi Jian,

Assuming your mesh is centered around x = 0, y = 0; you can put the following code in the usrdat2 routine in your usr file:

do i=1,lx1*ly1*lz1*lelt
   xm1(i,1,1,1) = 4.*xm1(i,1,1,1)
   ym1(i,1,1,1) = 4.*ym1(i,1,1,1)
enddo

When you run your case, the spectral element points in each element gets mapped to a location that is 4x farther away from the origin.

Sincerely,
Kento

> On Jul 13, 2017, at 07:20, nek5000-users at lists.mcs.anl.gov wrote:
> 
> Hi Nek,
> 
> I got the 2D pipe case with R=0.125. How can I stretch the pipe to R=1 whilst maintaining the other elements in a same scale.
> 
> Kind regards,
> 
> Jian
>  
> _______________________________________________
> 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