Any suggestion on modifying heattransfer model

Submitted by Weijing on Tue, 01/30/2018 - 02:03

Hi everyone,

I am working on a project to introduce new heat transfer model into LIGGGHTS of which the main task is to implement another heat transfer equation. I find the following source codes should be responsible for the current model in LIGGGHTS.
fix_heat_gran.cpp
fix_heat_gran.h
fix_heat_gran_conduction.cpp
fix_heat_gran_conduction.h
fix_scalar_transport_equation.cpp
fix_scalar_transport_equation.h

what I find is the fix_heat_gran_conduction.cpp is doing the calculation in the online documentation. however, I can't find the similar part in other files.
Is it good enough to mimic the fix_heat_gran_conduction.cpp to apply new equations if new model is only related to particle separation?
If someone can explain more about the files mentioned before, it will be of great help.
Thanks any reoly.

Weijing

JoG | Tue, 02/27/2018 - 13:46

Hi Weijing,

I also implemented a new heat transfer model. You are on the right track, you need to modify the mentioned files. I would recommend you to try to understand the source code, it will take you probably 2-3 days if you are not so familar in C++, but you should do it. Otherwise you won't be able to change the code to your needs. Then try to change minor things and then recompile to check if it at least works, even though the result might not be physical yet. That's the way how I was successful. By the way, I was a little pessimistic at first since I am also not programmer, but I could get it to run surprisingly fast.

Best
Johannes