{"id":736,"date":"2016-08-21T10:06:00","date_gmt":"2016-08-21T14:06:00","guid":{"rendered":"http:\/\/10.0.0.102:8080\/?p=736"},"modified":"2025-10-09T14:26:21","modified_gmt":"2025-10-09T18:26:21","slug":"getting-started-with-openfoam","status":"publish","type":"post","link":"https:\/\/knowledgebasev.kinsta.cloud\/?p=736","title":{"rendered":"OpenFOAM"},"content":{"rendered":"<p>This article provides basic information on how to get started with <a href=\"http:\/\/www.openfoam.com\/\">OpenFOAM<\/a> at Sabalcore. It is assumed that you are already familiar with using OpenFOAM and have reviewed Section 1 User Guide Basics.<\/p>\n<h3>Prerequisites<\/h3>\n<p>Understand how to select <a title=\"2) Getting Information About Processors, Compute Nodes, and Your Jobs\" href=\"\/?p=156\">nodes<\/a> for a job and create a <a title=\"4) The PBS script \u2013 Defining Your Job\" href=\"\/?p=233\">pbs script<\/a>\u00a0and running a <a title=\"5) Running Jobs \u2013 Batch and Interactive\" href=\"\/?p=223\" target=\"_blank\">batch or interactive job<\/a>.<\/p>\n<h3>This article covers:<\/h3>\n<ul>\n<li>Running the OpenFOAM demo<\/li>\n<li>Using\u00a0visualization tools for OpenFOAM &#8211; Paraview<\/li>\n<\/ul>\n<h3>OpenFOAM Demo<\/h3>\n<p>From a terminal window,\u00a0enter the following commands:<\/p>\n<pre><span style=\"font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 18px;\">\r\nmkdir ~\/OpenFOAM \r\ncd ~\/OpenFOAM \r\ncp -a \/uls\/6\/OpenFOAM\/example\/laminar.pbs .\r\nqsub laminar.pbs \r\n\r\n<\/span><\/pre>\n<p>Use the <a title=\"2) Getting Information About Processors, Clusters, and Your Jobs\" href=\"http:\/\/10.0.0.102:8080\/?p=156\">qstat<\/a> command to see its status. After the job has completed, take a look at the laminar.pbs file\u00a0and \u00a0the files in the &#8220;damBreakFine&#8221; and damBreak&#8221; directory. This example uses the standard &#8220;Allrun&#8221; command. You can view the output of the run in the *.o* and *.e* files that were copied to the same directory after the job completed. Use laminar.pbs as a template for your OpenFOAM batch jobs.<\/p>\n<p>Now that you have this example all ready in your home directory, try running the same job <a title=\"5) Running Jobs \u2013 Batch and Interactive\" href=\"\/?p=223\">interactively<\/a>.<\/p>\n<ol>\n<li>Start an interactive job with 1 node and 4 cores &#8211; &#8220;qsub -I -l nodes=1:blue:ppn=4&#8221;<\/li>\n<li>cd to the OpenFOAM directory that you created previously<\/li>\n<li>load the OpenFOAM module (as shown in the laminar.pbs file)<\/li>\n<li>run Allclean and Allrun<\/li>\n<\/ol>\n<h4>Visualization\u00a0Tools for OpenFOAM<\/h4>\n<p><a href=\"http:\/\/www.paraview.org\/\" target=\"_blank\">ParaView<\/a>\u00a0is an open-source, multi-platform data analysis and visualization application. ParaView users can quickly build visualizations to analyze their data using qualitative and quantitative techniques.<\/p>\n<p>Paraview can run from any node. Below are the commands to run ParaView.<\/p>\n<p>To run ParaView, use the launcher located in the remote desktop. Or launch it manually as described here:<\/p>\n<ol>\n<li>In the terminal window, enter the following commands one at a time:\n<ol>\n<li>\u201cqsub -I -l nodes=1:blue:ppn=6\u2033<\/li>\n<li>\u201cmodule load paraview\u201d<\/li>\n<li>\u201cparaview\u201d<\/li>\n<\/ol>\n<\/li>\n<li>You should see the paraview GUI display. Now open your files in Paraview.<\/li>\n<\/ol>\n<p>If you need further assistance with paraview, particularly with a specific version of OpenFOAM, please let us know.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article provides basic information on how to get started with OpenFOAM at Sabalcore. It is assumed that you are already familiar with using OpenFOAM and have reviewed Section 1 User Guide Basics. Prerequisites Understand how to select nodes for a job and create a pbs script\u00a0and running a batch or interactive job. This article [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[85],"tags":[120,112,92,56],"class_list":["post-736","post","type-post","status-publish","format-standard","hentry","category-software-specific-guides","tag-demo","tag-openfoam","tag-paraview","tag-qstat"],"_links":{"self":[{"href":"https:\/\/knowledgebasev.kinsta.cloud\/index.php?rest_route=\/wp\/v2\/posts\/736","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/knowledgebasev.kinsta.cloud\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/knowledgebasev.kinsta.cloud\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/knowledgebasev.kinsta.cloud\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/knowledgebasev.kinsta.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=736"}],"version-history":[{"count":43,"href":"https:\/\/knowledgebasev.kinsta.cloud\/index.php?rest_route=\/wp\/v2\/posts\/736\/revisions"}],"predecessor-version":[{"id":2072,"href":"https:\/\/knowledgebasev.kinsta.cloud\/index.php?rest_route=\/wp\/v2\/posts\/736\/revisions\/2072"}],"wp:attachment":[{"href":"https:\/\/knowledgebasev.kinsta.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=736"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/knowledgebasev.kinsta.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=736"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/knowledgebasev.kinsta.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=736"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}