fix print - print pressure to file

Hi Users,

I’m trying to use the fix print to print the pressure of the system to a file “pressure.txt”, however, when I use the following commands:

variable sp equal press
fix stuff all print 1000 “$sp” file pressure.txt

I get the error:

ERROR on proc 0: Substitution for illegal variable

Any help would be appreciated!

Thanks,
Casey

Also, Steve, thanks for the log2txt.py!

You need ${sp} for a two-letter variable. See the variable
doc page.

Steve