Hi Nilay,
I implement a simpler useric:
c-----------------------------------------------------------------------
subroutine useric (ix,iy,iz,eg)
include 'SIZE'
include 'TOTAL'
include 'NEKUSE'
common /exacu/ ue(lx1,ly1,lz1,lelt),ve(lx1,ly1,lz1,lelt), we(lx1,ly1,lz1,lelt),pe(lx2,ly2,lz2,lelt)
common /exacd/ ud(lx1,ly1,lz1,lelt),vd(lx1,ly1,lz1,lelt), wd(lx1,ly1,lz1,lelt),pd(lx2,ly2,lz2,lelt)
integer e,eg, eqnum
integer icalld
save icalld
data icalld /0/
n = nx1*ny1*nz1*nelv
if (icalld.eq.0) then
icalld = icalld + 1
time = 0.
u0 = 0.0
v0 = 0.0
w0 = 0.0
endif
ie = gllel(ieg)
ux=ue(ix,iy,iz,ie)
uy=ve(ix,iy,iz,ie)
uz=we(ix,iy,iz,ie)
temp=0
return
end
c-----------------------------------------------------------------------
… and the *.par file:
….
[PROBLEMTYPE]
equation = incompNS
[PRESSURE]
preconditioner = semg_xxt
residualTol = 1e-09
residualProj = yes
[VELOCITY]
residualTol = 1e-09
density = 1.0
viscosity = 0.001532
residualProj = yes
I hope that this helps.
Nadeem
--
You received this message because you are subscribed to a topic in the Google Groups "Nek5000" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nek5000/D5Ya7ur3xjI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to nek5000+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nek5000/3a5a5f45-630b-43bd-8063-6bd80748eec6n%40googlegroups.com.
(ue,ve,we) is from an older version of the code and was the initial velocity field. I no longer need this and I will probably take it out, so please ignore it.
Once the fluid properties are read from *.par, it remains constant in the code.
You have to set some initial velocity field -- whatever your study entails.
L=1 is believe by default in the Nek5000, unless explicitly reset -- I do not know how to reset it for a given problem, can someone clarify this point?
(On the basis of numbers, your velocity scale should be U=0.89 with L=1, and U=89 with L=0.01.)
The velocity field is automatically calculated in userchk at the start of every timestep.
Nadeem
... and the *.par file:
....
--
You received this message because you are subscribed to the Google Groups "Nek5000" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nek5000+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nek5000/CAHqO89P0PK%3D1GiqCY9jUsvs6V2KbO0RqS3MBVFJWqMKWEorEwQ%40mail.gmail.com.