{"id":16073239,"url":"https://github.com/cembooks/static","last_synced_at":"2025-08-09T08:19:08.226Z","repository":{"id":249471428,"uuid":"831196739","full_name":"cembooks/static","owner":"cembooks","description":"Supplemented computer code for the book \"Electromagnetics with finite elements: static problems\" ISBN 978-9090380933","archived":false,"fork":false,"pushed_at":"2024-12-02T22:43:09.000Z","size":1078,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T21:19:27.576Z","etag":null,"topics":["c-plus-plus","dealii","electromagnetics","finite-elements"],"latest_commit_sha":null,"homepage":"https://cembooks.nl","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cembooks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-19T22:37:13.000Z","updated_at":"2024-12-02T22:43:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"1e451b4f-e1d1-4c97-a2a2-4d8082d2ccfc","html_url":"https://github.com/cembooks/static","commit_stats":{"total_commits":36,"total_committers":1,"mean_commits":36.0,"dds":0.0,"last_synced_commit":"cc66b352a38ba9a59a2d085fe91e0059260657f2"},"previous_names":["cembooks/static"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cembooks%2Fstatic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cembooks%2Fstatic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cembooks%2Fstatic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cembooks%2Fstatic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cembooks","download_url":"https://codeload.github.com/cembooks/static/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247321359,"owners_count":20919975,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c-plus-plus","dealii","electromagnetics","finite-elements"],"created_at":"2024-10-09T08:05:10.013Z","updated_at":"2025-08-09T08:19:08.214Z","avatar_url":"https://github.com/cembooks.png","language":"C++","readme":"\u003ch1\u003eSupplemented computer code\u003c/h1\u003e\n\n\u003ch2\u003e Introduction \u003c/h2\u003e\n\nThis is the supplemental computer code for the book \"Electromagnetics with\nfinite elements: static problems\", ISBN 978-9090380933. The code contains\nnumerical experiments that illustrate application of the finite element\nmethod to problems in electro- and magnetostatics. A number of boundary\nvalue problems formulated in terms of electric scalar potential, total\nmagnetic scalar potential, reduced magnetic scalar potential, magnetic vector\npotential, and current vector potential are solved numerically on two- and\nthree-dimensional problem domains.\n\nThe documentation of the computer code and the numerical experiments\nexists in a form of online Logbook. The Logbook can be found at \nhttps://cembooks.nl.\n\n\u003ch2\u003e Installation \u003c/h2\u003e\n\nTo run the code do the following.\n\n1) Get [deal.II](https://dealii.org) version 9.7.0 or newer and install it. The\n   best is to build the latest version of deal.II from the source by following\n\t the installation instructions available at [www.dealii.org](https://dealii.org).\n   No optional interfaces to other software packages are needed. The default \n   configuration will do.\n\n   Set an environment variable by adding the following line to /etc/profile: \n\n\t export DEAL_II_DIR=/path/to/dealii \n\n   where /path/to/dealii is the directory in which the deal.II is installed. Reboot.\n   Check if the variable exists by typing the following into CLI:\n\n   printenv | grep DEAL\n\n   Check if the version of deal.II in the CMakeLists.txt files is correct. To do so,\n   change into static/ directory and type the following:\n\n   find . -name \"CMakeLists.txt\" -exec grep \"find_package(deal.II\" {} +\n\n   If the version is not correct, change it. For example, to change the version \n   from 9.3.2 to 9.7.0 type the following into CLI:\n\n   find . -name \"CMakeLists.txt\" -exec sed -i 's/deal.II 9.3.2/deal.II 9.7.0/g' {} +\n\n2) Install gmsh, gnuplot, texlive, and GNU parallel. This can be done as the \n   following:\n\n   sudo apt-get install gmsh gnuplot texlive parallel\n\n3) Install a program for viewing vtk files. [VisIt](https://visit.llnl.gov) \n   software package of the Lawrence Livermore National Laboratory is a good\n   option. However, VisIt cannot open files that contain the higher-order cells.\n   Many numerical experiments use the second-order mapping. To be able to view\n   the vtu files [Paraview](https://www.paraview.org) version 5.5.0 or higher\n   is needed. Paraview can open vtk files as well. So, strictly speaking\n   Paraview is enough. I recommend to install both, Paraview and VisIt. \n\n4) Extract the archive of the supplemental computer to static/ directory.\n\n5) Change into the static/ directory and run\n\n   ./clean  \n   ./setup  \n   ./build  \n   ./run-all  \n\n   This will build and execute all numerical experiments. The last two steps will\n   take some time... Alternatively, you can build and run only the experiments you\n   are interested in. To do so, change into static/ and run\n\n   ./clean  \n   ./setup  \n\n   Then change into the directory of the experiment you are interested in, say\n   mms/. In this directory change into build/Release/ and run\n\n   ./clean  \n   ./build  \n\n   After that change into mms/bin/Release/ and run\n\n   ./run-all  \n\n   This will execute the mms experiment. The results of the simulations are in\n   mms/bin/Release/Data/ directory.\n\n   Note that running the ./clean script is a must. You need to run it even if\n   you operate on a clean copy of the code. The git removes empty directories.\n   But the empty directories are needed for running the code. The ./clean script\n   restores all missing (empty) directories.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcembooks%2Fstatic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcembooks%2Fstatic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcembooks%2Fstatic/lists"}