[Nek5000-users] Applying multiple flux boundary conditions
nek5000-users at lists.mcs.anl.gov
nek5000-users at lists.mcs.anl.gov
Mon Jan 22 06:38:20 CST 2018
Hi Daniel,
you want to use the ‘ifield’ index that is 1 for velocity field and 2 for temperature field. Your usrbc subroutine would look like:
if (ifield.eq.1) then
YOUR BC FOR VELOCITY
else
YOUR BC FOR TEMPERATURE
endif
if you only solve for velocity and temperature fields.
Marco
On Jan 22fd, 2018, at 3:58 AM, nek5000-users at lists.mcs.anl.gov<mailto:nek5000-users at lists.mcs.anl.gov> wrote:
Hi all,
I'm trying to apply both temperature and velocity flux boundary conditions at one of my boundaries. I am unsure, however, how to apply this in userbc in the usr file. I can set one of the two by having an 'f' in the box file (for just one variable) and then defining 'flux =' in userbc. How do I do this for both temperature and velocity? Is there separate term for flux for temperature and flux for velocity?
Best,
Daniel Ward
_______________________________________________
Nek5000-users mailing list
Nek5000-users at lists.mcs.anl.gov<mailto:Nek5000-users at lists.mcs.anl.gov>
https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/nek5000-users/attachments/20180122/10b5e6c3/attachment.html>
More information about the Nek5000-users
mailing list