Regarding boundary condition from file
******************* 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 friends, I am trying to use boundary conditions from a file. I followed section "3.3.5.5" of the user guide, and attempted the example of "ChanFlow2D_bcsfromfiles.xml". Code runs perfectly with the given boundary of the .bc files. However, I am struggling to create a ".bc" file. How are the ".bc" files created for "ChanFlow2D_bcsfromfiles.xml" example? Is it possible to use ASCII data in the ".bc" files? With regards Abhishek -- --------------------------------------------------------------------------------------- Abhishek Kumar Assistant Professor (Research) Centre for Fluid and Complex Systems Coventry University, Coventry CV15FB The United Kingdom Phone: +44 24 7765 9150 Mobile: +44 7464026494 ---------------------------------------------------------------------------------------
Hi Ahbishek, Have you made any progress on this yet? To generate a “.bc” file you can extract the mesh xml file of the boundary region using the extract module of nekmesh. In this case you have to the relevant composite and do something like NekMesh -m extract:surf=XX file2D.xml filebc.xml where XX is the number of the composite for that boundary. You can then solve a pdf on this mesh to generate a “.fld” file that you can call a “.bc” file. Alternatively you can use one of the interpolation routines to interpolate some other data (i.e. RANS data) to this domain. Hope this helps. Cheers, Spencer. Spencer Sherwin FREng, FRAeS Head of Aerodynamics Section, Director of Research Computing Service, Professor of Computational Fluid Mechanics, Department of Aeronautics, South Kensington Campus, Imperial College London, SW7 2AZ, UK Phone: +44 (0)20 7594 5052 http://www.imperial.ac.uk/people/s.sherwin/ On 4 Dec 2020, at 15:47, Abhishek Kumar <abhishek.kir@gmail.com<mailto:abhishek.kir@gmail.com>> wrote: This email from abhishek.kir@gmail.com<mailto:abhishek.kir@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 friends, I am trying to use boundary conditions from a file. I followed section "3.3.5.5" of the user guide, and attempted the example of "ChanFlow2D_bcsfromfiles.xml". Code runs perfectly with the given boundary of the .bc files. However, I am struggling to create a ".bc" file. How are the ".bc" files created for "ChanFlow2D_bcsfromfiles.xml" example? Is it possible to use ASCII data in the ".bc" files? With regards Abhishek -- --------------------------------------------------------------------------------------- Abhishek Kumar Assistant Professor (Research) Centre for Fluid and Complex Systems Coventry University, Coventry CV15FB The United Kingdom Phone: +44 24 7765 9150 Mobile: +44 7464026494 --------------------------------------------------------------------------------------- _______________________________________________ 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, Thanks for your reply. I missed the NekMesh trick. I used "FieldConvert extract:bnd=x abc.xml abc.fld abc_x.fld" to get information on relevant composite etc. Then, I generated the compressed data using "LibUtilities::CompressData::ZlibEncodeToBase64Str(vec,str);". I find "Demos" codes very useful; in this way, we can use Nektar as a library. With regards Abhishek On Sun, Dec 13, 2020 at 8:41 PM Sherwin, Spencer J <s.sherwin@imperial.ac.uk> wrote:
Hi Ahbishek,
Have you made any progress on this yet? To generate a “.bc” file you can extract the mesh xml file of the boundary region using the extract module of nekmesh. In this case you have to the relevant composite and do something like
NekMesh -m extract:surf=XX file2D.xml filebc.xml
where XX is the number of the composite for that boundary.
You can then solve a pdf on this mesh to generate a “.fld” file that you can call a “.bc” file. Alternatively you can use one of the interpolation routines to interpolate some other data (i.e. RANS data) to this domain.
Hope this helps.
Cheers, Spencer.
Spencer Sherwin FREng, FRAeS Head of Aerodynamics Section, Director of Research Computing Service, Professor of Computational Fluid Mechanics, Department of Aeronautics, South Kensington Campus, Imperial College London, SW7 2AZ, UK Phone: +44 (0)20 7594 5052 http://www.imperial.ac.uk/people/s.sherwin/
On 4 Dec 2020, at 15:47, Abhishek Kumar <abhishek.kir@gmail.com> wrote:
This email from abhishek.kir@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 friends,
I am trying to use boundary conditions from a file. I followed section "3.3.5.5" of the user guide, and attempted the example of "ChanFlow2D_bcsfromfiles.xml". Code runs perfectly with the given boundary of the .bc files. However, I am struggling to create a ".bc" file.
How are the ".bc" files created for "ChanFlow2D_bcsfromfiles.xml" example?
Is it possible to use ASCII data in the ".bc" files?
With regards Abhishek
--
--------------------------------------------------------------------------------------- Abhishek Kumar Assistant Professor (Research) Centre for Fluid and Complex Systems Coventry University, Coventry CV15FB The United Kingdom Phone: +44 24 7765 9150 Mobile: +44 7464026494
--------------------------------------------------------------------------------------- _______________________________________________ Nektar-users mailing list Nektar-users@imperial.ac.uk https://mailman.ic.ac.uk/mailman/listinfo/nektar-users
-- --------------------------------------------------------------------------------------- Abhishek Kumar Assistant Professor (Research) Centre for Fluid and Complex Systems Coventry University, Coventry CV15FB The United Kingdom Phone: +44 24 7765 9150 Mobile: +44 7464026494 ---------------------------------------------------------------------------------------
participants (2)
- 
                
                Abhishek Kumar
- 
                
                Sherwin, Spencer J