CNR-Engineering / PyTelTools

Python Telemac Tools for post-processing tasks (includes a workflow)
https://github.com/CNR-Engineering/PyTelTools/wiki
GNU General Public License v3.0
32 stars 15 forks source link

Add two variables #16

Closed krober10nd closed 2 years ago

krober10nd commented 2 years ago

Hello,

Is there a API support to multiply two variables in one Serafin file and produce a new input file with the result?

Thanks

lucduron commented 2 years ago

Hello,

If you want to read and write a Serafin file in adding a variable, you could use a command line script such as : cli\slf_base.py old.slf new.slf --var2add NEW

But you have first to defined your new variable and formula in pyteltools/slf/variable/variables_2d.py.

If you do not manage, you can try to write your own script and can help you if you have questions about it.

Best regards, Luc

krober10nd commented 2 years ago

Thank you I managed