Apply filer to a specified domain range
******************* 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. ******************* Hi, I was wandering if it is possible to program into a Filter a possibility to be applied onto a selected range of the domain. Much like what is possible using FieldConvert -r option. I looked at the code, and there is the DomainRange, but I am not sure there is a way to use it on ExpList through which I access coordinates, physical values from within the Filter. One solution I see is to just go through what is available through GetCoords() (at initialization) and create a mask to filter out values from outside the specified range. The filter I am working on is based on quantities integrated from the fields, So I think I could create the mask at initialization and than use it at updates to zero-out values outside. But might it be, that something like this is already implemented? Any suggestions are welcome. Cheers! Stan -- Best regards, Stanisław Gepner, Ph.D. *Faculty of Power and Aeronautical Engineering* Nowowiejska 21/25 Str. 00-665 Warsaw, Poland phone +48 (22) 234 51 70 <https://www.pw.edu.pl/engpw>
HI Stan, I am not aware of current feature for this. The DomainRange is used to select elements that lie within a range and then we set up a list of elements that are in this range so this happens before ExpLIst is created in FieldConvert. Previously we have used something similar to what you suggest below by creating a mask so that might be the way to go for now. Cheers, Spencer. On 28 Apr 2021, at 13:30, Stanisław Gepner <sgepner@meil.pw.edu.pl<mailto:sgepner@meil.pw.edu.pl>> wrote: This email from sgepner@meil.pw.edu.pl<mailto:sgepner@meil.pw.edu.pl> 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. Hi, I was wandering if it is possible to program into a Filter a possibility to be applied onto a selected range of the domain. Much like what is possible using FieldConvert -r option. I looked at the code, and there is the DomainRange, but I am not sure there is a way to use it on ExpList through which I access coordinates, physical values from within the Filter. One solution I see is to just go through what is available through GetCoords() (at initialization) and create a mask to filter out values from outside the specified range. The filter I am working on is based on quantities integrated from the fields, So I think I could create the mask at initialization and than use it at updates to zero-out values outside. But might it be, that something like this is already implemented? Any suggestions are welcome. Cheers! Stan -- Best regards, Stanisław Gepner, Ph.D. Faculty of Power and Aeronautical Engineering Nowowiejska 21/25 Str. 00-665 Warsaw, Poland phone +48 (22) 234 51 70 <khnadmohdkfpdmmb.png><https://www.pw.edu.pl/engpw> _______________________________________________ Nektar-users mailing list Nektar-users@imperial.ac.uk<mailto:Nektar-users@imperial.ac.uk> https://mailman.ic.ac.uk/mailman/listinfo/nektar-users
Hi Spencer, It seems Ankang is working on something that could possibly provide this functionality, i.e. a mask based on some criteria. For now the easiest solution is not to use a filter but process the chk files with -r option. If such a filter was to be added, to make it generally available, would ExpList be the right place to put it in? Cheers! Stan Best regards, Stanisław Gepner, Ph.D. *Faculty of Power and Aeronautical Engineering* Nowowiejska 21/25 Str. 00-665 Warsaw, Poland phone +48 (22) 234 51 70 <https://www.pw.edu.pl/engpw> W dniu 5/3/21 o 2:37 PM, Sherwin, Spencer J pisze:
HI Stan,
I am not aware of current feature for this. The DomainRange is used to select elements that lie within a range and then we set up a list of elements that are in this range so this happens before ExpLIst is created in FieldConvert.
Previously we have used something similar to what you suggest below by creating a mask so that might be the way to go for now.
Cheers, Spencer.
On 28 Apr 2021, at 13:30, Stanisław Gepner <sgepner@meil.pw.edu.pl <mailto:sgepner@meil.pw.edu.pl>> wrote:
This email from sgepner@meil.pw.edu.pl <mailto:sgepner@meil.pw.edu.pl> 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.
Hi,
I was wandering if it is possible to program into a Filter a possibility to be applied onto a selected range of the domain. Much like what is possible using FieldConvert -r option.
I looked at the code, and there is the DomainRange, but I am not sure there is a way to use it on ExpList through which I access coordinates, physical values from within the Filter.
One solution I see is to just go through what is available through GetCoords() (at initialization) and create a mask to filter out values from outside the specified range. The filter I am working on is based on quantities integrated from the fields, So I think I could create the mask at initialization and than use it at updates to zero-out values outside. But might it be, that something like this is already implemented? Any suggestions are welcome.
Cheers!
Stan
-- Best regards, Stanisław Gepner, Ph.D.
*Faculty of Power and Aeronautical Engineering* Nowowiejska 21/25 Str. 00-665 Warsaw, Poland phone +48 (22) 234 51 70
<khnadmohdkfpdmmb.png> <https://www.pw.edu.pl/engpw> _______________________________________________ Nektar-users mailing list Nektar-users@imperial.ac.uk <mailto:Nektar-users@imperial.ac.uk> https://mailman.ic.ac.uk/mailman/listinfo/nektar-users
participants (2)
- 
                
                Sherwin, Spencer J
- 
                
                Stanisław Gepner