Compute velocity gradient during runtime
******************* This email originates from outside Imperial. Do not click on links and attachments unless you recognise the sender. If you trust the sender, add them to your safe senders list https://spam.ic.ac.uk/SpamConsole/Senders.aspx to disable email stamping for this address. ******************* Dear All, How can I compute the velocity gradient during runtime? I see a module for FieldConvert but I need to have the gradients during the simulation. Velocity gradients are to be used to calculate the TKE dissipation term. The latter may be used to calculate the Kolmogorov length scale. Is there any filter for this? Or can anyone suggest a workaround? Kind regards syavash
Hi syavash, You can use FieldConvert inside your session file. Here is an example that calculates the gradient of all fields and writes into an existing folder called timeSteps: <FILTERS> <FILTER TYPE="FieldConvert"> <PARAM NAME="OutputFile">timeSteps/out.chk</PARAM> <PARAM NAME="OutputFrequency">1.0e+04</PARAM> <PARAM NAME="Modules"> gradient </PARAM> </FILTER> </FILTERS> With the newest version, I think you can select the fields that you want to take the gradient of. But I am using 5.2.0, so I cannot provide a working code script for that. Cheers, Ilteber -- İlteber R. Özdemir On Fri, 7 Apr 2023 at 12:02, Ehsan Asgari <eh.asgari@gmail.com> wrote:
This email from eh.asgari@gmail.com originates from outside Imperial. Do not click on links and attachments unless you recognise the sender. If you trust the sender, add them to your safe senders list <https://spam.ic.ac.uk/SpamConsole/Senders.aspx> to disable email stamping for this address.
Dear All,
How can I compute the velocity gradient during runtime? I see a module for FieldConvert but I need to have the gradients during the simulation. Velocity gradients are to be used to calculate the TKE dissipation term. The latter may be used to calculate the Kolmogorov length scale.
Is there any filter for this? Or can anyone suggest a workaround?
Kind regards syavash _______________________________________________ Nektar-users mailing list Nektar-users@imperial.ac.uk https://mailman.ic.ac.uk/mailman/listinfo/nektar-users
Hi Ilteber This is what I was looking for. Thanks for your help. Kind regards syavash On Fri, Apr 7, 2023 at 2:24 PM İlteber Özdemir <rilteber@gmail.com> wrote:
Hi syavash,
You can use FieldConvert inside your session file. Here is an example that calculates the gradient of all fields and writes into an existing folder called timeSteps:
<FILTERS> <FILTER TYPE="FieldConvert"> <PARAM NAME="OutputFile">timeSteps/out.chk</PARAM> <PARAM NAME="OutputFrequency">1.0e+04</PARAM> <PARAM NAME="Modules"> gradient </PARAM> </FILTER> </FILTERS>
With the newest version, I think you can select the fields that you want to take the gradient of. But I am using 5.2.0, so I cannot provide a working code script for that.
Cheers, Ilteber
-- İlteber R. Özdemir
On Fri, 7 Apr 2023 at 12:02, Ehsan Asgari <eh.asgari@gmail.com> wrote:
This email from eh.asgari@gmail.com originates from outside Imperial. Do not click on links and attachments unless you recognise the sender. If you trust the sender, add them to your safe senders list <https://spam.ic.ac.uk/SpamConsole/Senders.aspx> to disable email stamping for this address.
Dear All,
How can I compute the velocity gradient during runtime? I see a module for FieldConvert but I need to have the gradients during the simulation. Velocity gradients are to be used to calculate the TKE dissipation term. The latter may be used to calculate the Kolmogorov length scale.
Is there any filter for this? Or can anyone suggest a workaround?
Kind regards syavash _______________________________________________ Nektar-users mailing list Nektar-users@imperial.ac.uk https://mailman.ic.ac.uk/mailman/listinfo/nektar-users
participants (2)
- 
                
                Ehsan Asgari
- 
                
                İlteber Özdemir