hexagon logo

Question regarding plot creation in Cradle scFLOW

I am using Cradle scFLOW to model diffusive transport with c being the concentration of the molecule of interest. 
I will need a plot of dc/dx * k1 / (c / k2 + 1)^2, with the k's being constants. I know how to get c(x) out in a CSV file and can make a plot in Excel.
Is there an easy way to do this within Cradle that I'm missing? Or can I just get a plot of concentration?

  • Hi Shehroz, thank you for reaching out. Yes, we do have a function called “Variable Registration” in scPOST. This is to register a custom variable using the existing variables. You can use many operators from simple addition to complex operations like if-else statement, gradient, partial differential, inner/outer product, etc. We do have an article to register total pressure just as an example. Please look at the article below in the user access page.
    https://simcompanion.hexagon.com/customers/s/article/display-of-total-pressure-kb8024370

    For your equation, please register three equations in order. I do not know what the k1 and k2 are, so I just write as constant. CN01 is the concentration from the simulation result.
    Constant for k1
    Constant for k2
    delx (CN01)*k1/(CN01/k2+1)^2 for diffusive transport

    Please note that the registered equation can be saved as history file(hen file) by clicking [Save history] button and can be loaded by clicking [Read history] button when needed in future project. By utilizing this, if I need to define complex equations, I normally write equations in text file as hen extension. Then, I load the hex file in scPOST. Sometimes, this is convenient, so I would like to let you know.

    Also, status file(sta file) will save the equations written in variable registration as well.

    Please let me know if you have any questions.