Hello,
I wrote soln-plugin-tavg like this
[soln-plugin-tavg]
nsteps = 1
dt-out = 0.001
mode = continuous
basedir = ./results4
basename = files-avg-{t:.2f}
avg-p = p
avg-rho = rho
avg-u = u
avg-v = v
avg-w = w
avg-uu = u*u
avg-vv = v*v
avg-ww = w*w
avg-uv = u*v
avg-uw = u*w
avg-vw = v*w
fun-avg-upup = uu - u*u
fun-avg-vpvp = vv - v*v
fun-avg-wpwp = ww - w*w
fun-avg-upvp = uv - u*v
fun-avg-upwp = uw - u*w
fun-avg-vpwp = vw - v*w
avg-vel = sqrt(u*u + v*v + w*w)
fun-avg-urms = sqrt(uu - u*u + vv - v*v + ww -w*w)
fun-avg-p = p
fun-avg-rho = rho
However, I got errors. I think it is the cause of avg of density and pressure. I don’t understand the essentials to this situation.
Let me learn it please.
$pyfr run -b cuda -p target_with_fluid_merge4.pyfrm target_with_fluid_merge4.ini
Wrote file /home/ubuntu2204/PyFR-Test-Cases/kajima_test3/results4/target_with_fluid_results4-0.00.pyfrs at time 0.0 for mesh /home/ubuntu2204/PyFR-Test-Cases/kajima_test3/target_with_fluid_merge4.pyfrm.
Traceback (most recent call last):
File "/home/ubuntu2204/libxsmm/pyfr-venv/bin/pyfr", line 8, in <module>
sys.exit(main())
File "/home/ubuntu2204/libxsmm/pyfr-venv/lib/python3.10/site-packages/pyfr/__main__.py", line 118, in main
args.process(args)
File "/home/ubuntu2204/libxsmm/pyfr-venv/lib/python3.10/site-packages/pyfr/__main__.py", line 251, in process_run
_process_common(
File "/home/ubuntu2204/libxsmm/pyfr-venv/lib/python3.10/site-packages/pyfr/__main__.py", line 236, in _process_common
solver = get_solver(backend, rallocs, mesh, soln, cfg)
File "/home/ubuntu2204/libxsmm/pyfr-venv/lib/python3.10/site-packages/pyfr/solvers/__init__.py", line 16, in get_solver
return get_integrator(backend, systemcls, rallocs, mesh, initsoln, cfg)
File "/home/ubuntu2204/libxsmm/pyfr-venv/lib/python3.10/site-packages/pyfr/integrators/__init__.py", line 36, in get_integrator
return integrator(backend, systemcls, rallocs, mesh, initsoln, cfg)
File "/home/ubuntu2204/libxsmm/pyfr-venv/lib/python3.10/site-packages/pyfr/integrators/dual/phys/controllers.py", line 16, in __init__
csh(self)
File "/home/ubuntu2204/libxsmm/pyfr-venv/lib/python3.10/site-packages/pyfr/plugins/tavg.py", line 161, in __call__
self._init_accumex(intg)
File "/home/ubuntu2204/libxsmm/pyfr-venv/lib/python3.10/site-packages/pyfr/plugins/tavg.py", line 94, in _init_accumex
self.prevex = self._eval_acc_exprs(intg)
File "/home/ubuntu2204/libxsmm/pyfr-venv/lib/python3.10/site-packages/pyfr/plugins/tavg.py", line 136, in _eval_acc_exprs
exprs.append([npeval(v, subs) for v in self.aexprs])
File "/home/ubuntu2204/libxsmm/pyfr-venv/lib/python3.10/site-packages/pyfr/plugins/tavg.py", line 136, in <listcomp>
exprs.append([npeval(v, subs) for v in self.aexprs])
File "/home/ubuntu2204/libxsmm/pyfr-venv/lib/python3.10/site-packages/pyfr/nputil.py", line 83, in npeval
return eval(expr, _npeval_syms, locals)
File "<string>", line 1, in <module>
TypeError: 'NoneType' object is not subscriptable
I appriciate your supports.