units in LIGGGHTS

Submitted by Bias on
Bias

In reply to by Daniel Queteschiner

Does this mean that LIGGGHTS does not change units in the computations to SI units anywhere? Or can there be circumstances when its important to use a model parameter that has the "correct" intended dimensions?
Lets say for example that I use global model property surfaceTension for my own contact model but i specify and use that property as it would actually be a Force as dimension and not energy/length*length. Would that cause a problem for the solver? (More than the obvious coding confusion of course..)

Is dimensions of model parameters specified anywhere or is that information not used?

Wed, 13 Jun 2018 - 14:35 Permalink
Daniel Queteschiner

In reply to by Bias

LIGGGHTS does what you tell it to do. It's not doing some magical dimensional analysis on your equations.
It offers some conversion factors specific to the units system given in the input script: https://github.com/CFDEMproject/LIGGGHTS-PUBLIC/blob/master/src/force.h… which are set here: https://github.com/CFDEMproject/LIGGGHTS-PUBLIC/blob/master/src/update…
You're the one responsible for applying them correctly and for implementing your equations correctly.
If you use e.g. a density value and the units system is SI then the density value should be in kg/m³ if the units system is cgs then the value should be in g/cm³.

Wed, 13 Jun 2018 - 15:11 Permalink

Hi!
I'm a new user to LIGGGHTS and have a question about the units for cases. How does it work with units in LIGGGHTS; is the code always solving in the unit specified for solving equations or are there cases where it will automatically change to SI units instead?
Is it specified the dimensions of model parameters for example that youngsModulus should be in Force/L^2 i.e. pressure? How can i check what dimensions the model parameters should have?

When doing a modification of a contact model and using a pre existing model parameter, does it have to be taken into account then what unit this model parameter has?

Best regards
Tobias