Mapping Variables from Different Solvers
Hello, I am trying to map variables from the CompressibleFlowSolver to the baseflow in APESolver for a coupled simulation that I am running. I was successfully able to map the pressure and density using: ‘<F VAR="p0" FILE="File.fld:p" />’ ‘<F VAR="rho0" FILE="File.fld:rho" />’ However, the same syntax does not apply for the velocity field, as the CompressibleFlowSolver solves for the momentum directly: ‘rhou, rhov’. Is there a way I can convert these variables to ‘u,v’ by dividing by the density? Thanks, Khaled Younes
Hi Khaled, the current Nektar++ release does not include a simple tool to divide two variables. You can either use the current git version, which ships the fieldfromstring FieldConvert module or use an external tool (python, matlab etc.) to compute the velocities. For the latter, the workflow could be to: - convert the field to pts (with FieldConvert) to obtain the values at the quadrature points - use python to manipulate the point values - convert the modified pts file back to fld with the interppointdatatofld module. In case the pts file contains the exact location of the quadrature points, the module _should_ not perform interpolation but use the values directly. Cheers, Kilian Am 05.11.18 um 15:06 schrieb Khaled Younes:
Hello,
I am trying to map variables from the */CompressibleFlowSolver/* to the baseflow in */APESolver/* for a coupled simulation that I am running. I was successfully able to map the pressure and density using:
‘<F VAR="p0" FILE="File.fld:p" />’
‘<F VAR="rho0" FILE="File.fld:rho" />’
However, the same syntax does not apply for the velocity field, as the CompressibleFlowSolver solves for the momentum directly: ‘rhou, rhov’. Is there a way I can convert these variables to ‘u,v’ by dividing by the density?
Thanks,
Khaled Younes
_______________________________________________ Nektar-users mailing list Nektar-users@imperial.ac.uk https://mailman.ic.ac.uk/mailman/listinfo/nektar-users
-- Dr.-Ing. Kilian Lackhove Fachgebiet für Energie- und Kraftwerkstechnik L1|08 114 Technische Universität Darmstadt Otto-Berndt-Straße 3 D-64287 Darmstadt Germany Tel.: +49 6151 16 - 28915 Fax: +49 6151 16 - 6555 e-mail: lackhove@ekt.tu-darmstadt.de
participants (2)
-
Khaled Younes
-
Kilian Lackhove