Hi, I am master student in universidade de São Paulo. As part of a discipline, I need to desenvolve a project using nektar++. I am following the tutorial of NACA, but when I try to generate the .xml file by tapping $NEK/NekMesh, I get the following message: No such module: input: mcf. What would I be doing wrong? Best regards, Felipe Silva Maffei <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Livre de vírus. www.avast.com <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>. <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
Hi Felipe, Are you using a version of Nektar++ that you have built from source or you're using a version installed from binary packages? If you have built from source, It sounds like you may have built Nektar++ without mesh generation support. If you're using binary packages, I believe these don't include mesh generation support so you need to build from source. When you configure your build, you need to ensure that the NEKTAR_UTILITY_NEKMESH option is set to ON and that NEKTAR_USE_MESHGEN is also ON. It sounds like your build doesn't have NEKTAR_USE_MESHGEN switched on. You will also need Open CASCADE Community Edition installed since this is required by the mesh generation functionality. If you're running on Linux, you should be able to install OCE from packages. If you're still having issues after enabling the NEKTAR_USE_MESHGEN option, if you can let us know what operating system and version you're using and provide some further details of your build configuration, we can provide further assistance. Regards, Jeremy On 11 Sep 2019, at 17:35, Felipe Silva Maffei <maffei@usp.br> wrote:
Hi,
I am master student in universidade de São Paulo. As part of a discipline, I need to desenvolve a project using nektar++. I am following the tutorial of NACA, but when I try to generate the .xml file by tapping $NEK/NekMesh, I get the following message: No such module: input: mcf. What would I be doing wrong?
Best regards,
Felipe Silva Maffei
Livre de vírus. www.avast.com. _______________________________________________ Nektar-users mailing list Nektar-users@imperial.ac.uk https://mailman.ic.ac.uk/mailman/listinfo/nektar-users
Hi Felipe, Following up on your response and CC'ing to nektar-users in case anyone else experiences this issue. You reported that you're using Ubuntu 14.04 and have installed the liboce-foundation-dev and liboce-modeling-dev packages. I normally install liboce-ocaf-dev which installs these packages plus a few others. However, I believe the specific issue here is that the version of OpenCASCADE Community Edition that is packaged for Ubuntu 14.04 is 0.15. Nektar++ requires 0.17 and Nektar++'s FindOCC.cmake script which is used to search for OCC during the configure process is set to look specifically for this version. It is therefore not finding your installed liboce packages and not building the mesh generation functionality. Since Ubuntu 14.04 is no longer supported, I would recommend upgrading to at least 16.04, which has OCE 0.17 packages. However, if you need to stick with 14.04, there are a couple of options. Firstly, you could try installing OCE 0.17 from a PPA, for example https://launchpad.net/~freecad-maintainers/+archive/ubuntu/oce-release. This provides packages of OCE 0.17 built for Ubuntu 14.04. Alternatively, you could try building OCE 0.17.3 from source (https://github.com/tpaviot/oce/tree/OCE-0.17.3). However, I think the source build is likely to be time consuming. If you want to use the PPA, the instructions are on the PPA page but to summarise, I would first remove your existing OCE packages with "sudo apt-get autoremove liboce-foundation-dev liboce-modeling-dev". This will remove the two dev packages that you installed plus their dependencies. Then you need to run "sudo add-apt-repository ppa:freecad-maintainers/oce-release". If it tells you that add-apt-repository is missing, you need to install the software-properties-common package to provide the "add-apt-repository" command. Once the additional repository is added, run "sudo apt-get update" and then "sudo apt-get install liboce-ocaf-dev" and this should install OCE version 0.17. Once the package install has completed, you can check that the correct version is installed by running "dpkg -l liboce-ocaf-dev" and checking that it shows version 0.17.1. You should now be able to reconfigure Nektar++ using CMake. Make sure that NEKTAR_USE_MESHGEN is set to ON. If the configuration completes successfully, you should then be able to build and install Nektar++ and run NekMesh with .mcf input files to undertake mesh generation. You can check that NekMesh has been built with the correct modules by running "NekMesh -l" and checking that "Input: mcf" is listed under the available classes. I've just tested this using the OCE packages from the "FreeCAD maintainers" PPA mentioned above, on a fresh Ubuntu 14.04 install, and the build is successful and NekMesh can generate meshes. I tested using 4.4.1 since this is the version of Nektar++ you said you're using. If you want the latest features in NekMesh, I would advise building master rather than 4.4.1. Also note that you will probably need to let Nektar++ build boost as a third party dependency. I did try using the system boost packages in 14.04 but the build fails with these. For me, CMake was automatically setting THIRDPARTY_BUILD_BOOST to ON so assuming you have the same, you can just leave this setting as it is. Hope this helps you to resolve the problem but let us know if you're still experiencing build issues. Cheers, Jeremy On 12 Sep 2019, at 10:03, Jeremy Cohen <jeremy.cohen@imperial.ac.uk> wrote:
Hi Felipe,
Are you using a version of Nektar++ that you have built from source or you're using a version installed from binary packages?
If you have built from source, It sounds like you may have built Nektar++ without mesh generation support. If you're using binary packages, I believe these don't include mesh generation support so you need to build from source.
When you configure your build, you need to ensure that the NEKTAR_UTILITY_NEKMESH option is set to ON and that NEKTAR_USE_MESHGEN is also ON. It sounds like your build doesn't have NEKTAR_USE_MESHGEN switched on.
You will also need Open CASCADE Community Edition installed since this is required by the mesh generation functionality. If you're running on Linux, you should be able to install OCE from packages.
If you're still having issues after enabling the NEKTAR_USE_MESHGEN option, if you can let us know what operating system and version you're using and provide some further details of your build configuration, we can provide further assistance.
Regards,
Jeremy
On 11 Sep 2019, at 17:35, Felipe Silva Maffei <maffei@usp.br> wrote:
Hi,
I am master student in universidade de São Paulo. As part of a discipline, I need to desenvolve a project using nektar++. I am following the tutorial of NACA, but when I try to generate the .xml file by tapping $NEK/NekMesh, I get the following message: No such module: input: mcf. What would I be doing wrong?
Best regards,
Felipe Silva Maffei
Livre de vírus. www.avast.com. _______________________________________________ Nektar-users mailing list Nektar-users@imperial.ac.uk https://mailman.ic.ac.uk/mailman/listinfo/nektar-users
participants (2)
- 
                
                Felipe Silva Maffei
- 
                
                Jeremy Cohen