×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

How to define a body flux and a surface flux with user subroutine DFLUX at the same time?

How to define a body flux and a surface flux with user subroutine DFLUX at the same time?

How to define a body flux and a surface flux with user subroutine DFLUX at the same time?

(OP)
I want to heat a object with a surface flux and a body flux at the same time.
How can I achieve this purpose with user subroutine DFLUX?

Now I have write a surface flux and a body flux with DFLUX and thay work well separately, but how can I write them in one file and let them work together.

I tried to write the subroutine like this:

CODE --> fortran

IF (JLTYP.EQ.1) THEN
    Code for body flux...
END IF

IF (JLTYP.EQ.0) THEN
    Code for surface flux...
END IF 

But it doesn't work correctly, when I run this subroutine, only the surface flux work, the body flux just doesn't work.

PS. I have set a surface flux and a body flux at Loads module and both select User Define.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources