An Example for Dflux Subroutine



Before talking about Dflux code, we need to know what the subroutine code is and what Abaqus can do:


Abaqus is an FEA software used to analyze models with high complexity. The provided option by this software creates a great environment to study various models. Not even solid mechanics but also thermal and fluid mechanic models can be simulated in this software. It is worth to mentioning that the fluid mechanic model was separated after Abaqus 6.16 and since version 2017 the company started to develop an independent solver for it. In order to increase the complexity of models, engineers can use FORTRAN to develop subroutine code and Python to create a model by scripting. Here we provide a simple description on how these two features help you to develop a model.

Scripting by Python:

Imagine you want to create a part with holes randomly distributed inside it. You need to bring a calculator and a piece of paper to find some random numbers in order to locate the center and radius of those holes. Another option is to use Matlab code or any other coding languages to find those random values. However, after finding those values you still need to create those holes inside your models. You need to modify your part at least one time per each hole. Fortunately, Abauqs provided Python scripting to avoid this. You can easily create your code and use the provided function to create and modify those holes inside your part. Consequently, you don’t need to do it by clicking and modifying your part. You can develop a code in Python to do the job for you.

Subroutine for Abaqus:

Now, you created your complex part and now you are ready to define your material properties, boundary condition and loads. Next, you notice your material properties are very complex and they change by time. Even if you didn’t have this problem, you need to change the value of time-dependent on material properties. You look at the Abaqus feature and think there is no way you can do it. In fact, your model should change during the process. Your values are not just a simple number and you need to specify them as a function of time and other variables. In this stage you need to use subroutine to define those complex properties in your model. Then, you can use the proper function known as Subroutine and define your function there and run your model.

More details about this product:

If someone claims they know subroutine, they know all there is to know about Matlab. Every subroutine has a special feature that makes it different from other models. However, it doesn’t mean if you don’t know one subroutine you need to start as a beginner. You just need to use the same algorithm from other subroutines and after a while, you become familiar with the code.


Dflux code is one of the most simple subroutine codes you can start learning. This subroutine facilitates simulation of a thermal model. Using Dflux subroutine you can define complex heat loads for your model with minimum effort. The usage of Dflux is similar to that of Dload in thermal model simulations. You can download Dload code from here:

An Example for Dload Subroutine

In these files, we try to give you a simple example to show you how to use the Dflux subroutine. We use a thermal model and we define a complex shape for heat input. This tutorial is a good start for additive manufacturing simulation.

In this product, we only give an example to help you with using the Dflux subroutine for your model. We avoid giving too many details so you can easily use the products. Here, you can find the following files:

Abaqus files: CAE, ODB, INP, FORTRAN, and JNL

Solidwork model

Powerpoint files which contain more details.

Video files: How to create this model, Powerpoint presentation.

For more information please send me an Email:




Easy learning

1 review for An Example for Dflux Subroutine

  1. HyperLyceum Team (verified owner)

    The video quality is good and free to download.

    It is a good start for those who want to start learning.

Only logged in customers who have purchased this product may leave a review.