{"id":20104,"date":"2019-04-04T14:18:41","date_gmt":"2019-04-04T14:18:41","guid":{"rendered":"https:\/\/www.simscale.com\/?page_id=20104"},"modified":"2026-02-11T13:48:19","modified_gmt":"2026-02-11T13:48:19","slug":"mesh-upload","status":"publish","type":"page","link":"https:\/\/www.simscale.com\/docs\/simulation-setup\/meshing\/mesh-upload\/","title":{"rendered":"Mesh Upload"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In some instances, the user might be interested in generating mesh in a local environment and use SimScale to apply the simulation setup parameters and perform a simulation. It is possible to upload multiple mesh files to the SimScale Workbench from an external environment. The procedure is similar to <a href=\"https:\/\/www.simscale.com\/docs\/cad-preparation\/#cad-uploadimport\">uploading a geometry<\/a>. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once uploaded, an entity <em>Uploaded Meshes<\/em> is added to the simulation tree:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/frontend-assets.simscale.com\/media\/2025\/01\/uploaded-mesh-in-the-viewer.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"485\" src=\"https:\/\/frontend-assets.simscale.com\/media\/2025\/01\/uploaded-mesh-in-the-viewer-1024x485.png\" alt=\"uploaded meshes entity in the workbench\" class=\"wp-image-99413\" srcset=\"https:\/\/frontend-assets.simscale.com\/media\/2025\/01\/uploaded-mesh-in-the-viewer-1024x485.png 1024w, https:\/\/frontend-assets.simscale.com\/media\/2025\/01\/uploaded-mesh-in-the-viewer-300x142.png 300w, https:\/\/frontend-assets.simscale.com\/media\/2025\/01\/uploaded-mesh-in-the-viewer-768x364.png 768w, https:\/\/frontend-assets.simscale.com\/media\/2025\/01\/uploaded-mesh-in-the-viewer-1536x728.png 1536w, https:\/\/frontend-assets.simscale.com\/media\/2025\/01\/uploaded-mesh-in-the-viewer.png 1916w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Figure 1: Uploaded meshes entity in SimScale&#8217;s Workbench<\/figcaption><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Under <em>Uploaded Meshes<\/em> you should see all the meshes that were uploaded to the Workbench. Select one of them and proceed with the simulation using the <strong>&#8216;Create Simulation&#8217;<\/strong> button.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In order to use uploaded meshes successfully within SimScale, the boundaries of your meshes need to be specified in advance before uploading. All elements (i.e. nodes, edges, faces, or volumes) on which you want to apply boundary conditions or assign a material or other setup parameters must be grouped before the upload. <\/p>\n\n\n\n<div class=\"hw-block hw-note hw-note--info hw-note\">\n    <div class=\"hw-note__title\">\n        <p class=\"hw-note__titleText\"><i class=\"fa fa-exclamation-circle\" aria-hidden=\"true\"><\/i>Note<\/p>\n    <\/div>\n    <div class=\"hw-note__body\">\n        <p>Mesh upload is mandatory if <a href=\"https:\/\/www.simscale.com\/docs\/simulation-setup\/boundary-conditions\/empty-2d\/\">Empty 2D<\/a>, or <a href=\"https:\/\/www.simscale.com\/docs\/simulation-setup\/boundary-conditions\/wedge\/\">Wedge<\/a>  boundary condition needs to be applied.<\/p>\n    <\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"supported-formats\">Supported Format<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Currently, SimScale supports the OpenFOAM (.foam) native mesh format (ASCII only) for mesh uploads.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"openfoam-mesh-upload\">OPENFOAM\u00ae Mesh Upload<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To upload a mesh in the .foam format, simply pack the <em>constant<\/em> folder&nbsp;within the OpenFOAM case folder and upload it. The <em>constant<\/em> folder has to contain the&nbsp;<em>polyMesh<\/em>&nbsp;folder where the actual mesh files are located. Pack the <em>constant<\/em>&nbsp;folder either as *.tar.gz file or a *.zip archive before uploading. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">All mesh patches of your polyMesh\/boundaries file will be pickable so that boundary conditions can be assigned. Here is an example of the contents inside of the constant and polyMesh folders:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/frontend-assets.simscale.com\/media\/2025\/01\/constant-and-polymesh-folders-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"668\" nonce='96169ae70ed468e76354792853a1b0a8' nonce='7055c729397cbfbdfb7bc3fe4bbcb6b9' nonce='1eac480755d81f4054f862c5706ae556' nonce='0565bccc68de08aa289a22427bc4cd12' src=\"https:\/\/frontend-assets.simscale.com\/media\/2025\/01\/constant-and-polymesh-folders-1-1024x668.png\" alt=\"uploading openfoam mesh to simscale\" class=\"wp-image-99007\" style=\"width:633px;height:auto\" srcset=\"https:\/\/frontend-assets.simscale.com\/media\/2025\/01\/constant-and-polymesh-folders-1-1024x668.png 1024w, https:\/\/frontend-assets.simscale.com\/media\/2025\/01\/constant-and-polymesh-folders-1-300x196.png 300w, https:\/\/frontend-assets.simscale.com\/media\/2025\/01\/constant-and-polymesh-folders-1-768x501.png 768w, https:\/\/frontend-assets.simscale.com\/media\/2025\/01\/constant-and-polymesh-folders-1.png 1396w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Figure 2: Contents of a constant folder before uploading a .foam mesh to SimScale<\/figcaption><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">After importing the compressed constant folder to SimScale, the .foam mesh will be available for the following solvers: incompressible, compressible, convective heat transfer, and multiphase.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/frontend-assets.simscale.com\/media\/2025\/01\/openfoam-mesh-imported-in-simscale.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"688\" nonce='96169ae70ed468e76354792853a1b0a8' nonce='7055c729397cbfbdfb7bc3fe4bbcb6b9' nonce='1eac480755d81f4054f862c5706ae556' nonce='0565bccc68de08aa289a22427bc4cd12' src=\"https:\/\/frontend-assets.simscale.com\/media\/2025\/01\/openfoam-mesh-imported-in-simscale-1024x688.png\" alt=\"mesh import simscale openfoam format\" class=\"wp-image-99008\" style=\"width:698px;height:auto\" srcset=\"https:\/\/frontend-assets.simscale.com\/media\/2025\/01\/openfoam-mesh-imported-in-simscale-1024x688.png 1024w, https:\/\/frontend-assets.simscale.com\/media\/2025\/01\/openfoam-mesh-imported-in-simscale-300x202.png 300w, https:\/\/frontend-assets.simscale.com\/media\/2025\/01\/openfoam-mesh-imported-in-simscale-768x516.png 768w, https:\/\/frontend-assets.simscale.com\/media\/2025\/01\/openfoam-mesh-imported-in-simscale.png 1331w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Figure 3: .foam mesh imported to SimScale for an external aerodynamics simulation<\/figcaption><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Please note that SimScale uses original OpenFOAM headers as reference when processing imported meshes, therefore if the headers do not follow the correct OpenFOAM format this will cause the mesh import to fail. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This issue often happens when you generate the mesh with an OpenFOAM GUI, and in these cases it is important that you adjust the headers back to the original OpenFOAM format. For example, the image below shows an original OpenFOAM header for the <em>constant\/polyMesh\/boundary<\/em> file:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/frontend-assets.simscale.com\/media\/2025\/01\/openfoam-headers.png\"><img loading=\"lazy\" decoding=\"async\" width=\"931\" height=\"742\" nonce='1eac480755d81f4054f862c5706ae556' nonce='0565bccc68de08aa289a22427bc4cd12' src=\"https:\/\/frontend-assets.simscale.com\/media\/2025\/01\/openfoam-headers.png\" alt=\"openfoam header mesh import\" class=\"wp-image-99176\" style=\"width:678px;height:auto\" srcset=\"https:\/\/frontend-assets.simscale.com\/media\/2025\/01\/openfoam-headers.png 931w, https:\/\/frontend-assets.simscale.com\/media\/2025\/01\/openfoam-headers-300x239.png 300w, https:\/\/frontend-assets.simscale.com\/media\/2025\/01\/openfoam-headers-768x612.png 768w\" sizes=\"auto, (max-width: 931px) 100vw, 931px\" \/><\/a><figcaption class=\"wp-element-caption\">Figure 4: To make sure that your mesh uses the correct header format, compare your boundary file against the original OpenFOAM header from this image<\/figcaption><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">If the header format is wrong, you will have to update it for the boundary file and all other files in the constant folder.<\/p>\n\n\n\n<div class=\"hw-block hw-note hw-note--info hw-note\">\n    <div class=\"hw-note__title\">\n        <p class=\"hw-note__titleText\"><i class=\"fa fa-exclamation-circle\" aria-hidden=\"true\"><\/i>Important<\/p>\n    <\/div>\n    <div class=\"hw-note__body\">\n        <p>OpenFOAM\u00ae\u2019s binary format is not yet supported. Please make sure the mesh is in ASCII format. Hence, please open the file system\/controlDict and change the <em>writeFormat<\/em> entry from <em>binary<\/em> to <em>ascii.<\/em> \r\n\r\n<!-- wp:image {\"align\":\"center\",\"id\":91317,\"width\":\"306px\",\"height\":\"auto\",\"sizeSlug\":\"full\",\"linkDestination\":\"media\"} -->\r\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><a href=\"https:\/\/frontend-assets.simscale.com\/media\/2024\/04\/write-format-ascii-openfoam.png\"><img loading=\"lazy\" decoding=\"async\" width=\"368\" height=\"327\" nonce='cfa8ad2b15939a3135907f48b5841a68' nonce='f789e9f8e6c4da57a6af1ef71e2501bb' nonce='96169ae70ed468e76354792853a1b0a8' nonce='7055c729397cbfbdfb7bc3fe4bbcb6b9' nonce='1eac480755d81f4054f862c5706ae556' nonce='0565bccc68de08aa289a22427bc4cd12' src=\"https:\/\/frontend-assets.simscale.com\/media\/2024\/04\/write-format-ascii-openfoam.png\" alt=\"openfoam ascii writeformat for mesh uploads\" class=\"wp-image-91317\" style=\"width:306px;height:auto\" srcset=\"https:\/\/frontend-assets.simscale.com\/media\/2024\/04\/write-format-ascii-openfoam.png 368w, https:\/\/frontend-assets.simscale.com\/media\/2024\/04\/write-format-ascii-openfoam-300x267.png 300w\" sizes=\"auto, (max-width: 368px) 100vw, 368px\" \/><\/a><figcaption class=\"wp-element-caption\"><p>Figure 5: Adjusting the writeFormat definition to ascii before running the foamFormatConvert utility<\/p><\/figcaption><\/figure>\r\n<!-- \/wp:image -->\r\n\r\n<p>Afterward, using OpenFOAM, run the <a href=\"https:\/\/www.openfoam.com\/documentation\/guides\/latest\/api\/foamFormatConvert_8C.html\" target=\"_blank\">foamFormatConvert<\/a> utility to convert the binary mesh into an ASCII mesh.<\/p><\/p>\n    <\/div>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Note that unlike the CAD models, uploaded meshes are not available for downloading from the SimScale platform.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"supported-analysis-types\">Supported Analysis Types<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Considering the physics involved and the requirement of geometries the following analysis types may be supported to run simulations on uploaded meshes:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/frontend-assets.simscale.com\/media\/2025\/01\/analysis-types-in-simscale.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"762\" src=\"https:\/\/frontend-assets.simscale.com\/media\/2025\/01\/analysis-types-in-simscale-1024x762.png\" alt=\"supported analysis types for uploaded mesh\" class=\"wp-image-99411\" srcset=\"https:\/\/frontend-assets.simscale.com\/media\/2025\/01\/analysis-types-in-simscale-1024x762.png 1024w, https:\/\/frontend-assets.simscale.com\/media\/2025\/01\/analysis-types-in-simscale-300x223.png 300w, https:\/\/frontend-assets.simscale.com\/media\/2025\/01\/analysis-types-in-simscale-768x571.png 768w, https:\/\/frontend-assets.simscale.com\/media\/2025\/01\/analysis-types-in-simscale.png 1215w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Figure 6: Supported analysis types for the uploaded mesh.<\/figcaption><\/figure>\n<\/div>\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.simscale.com\/docs\/analysis-types\/incompressible-fluid-flow-analysis\/\">Incompressible<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.simscale.com\/docs\/analysis-types\/compressible-fluid-flow-analysis\/\">Compressible<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.simscale.com\/docs\/analysis-types\/convective-heat-transfer-analysis\/\">Convective Heat Transfer<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.simscale.com\/docs\/analysis-types\/multiphase-fluid-flow-analysis\/\">Multiphase<\/a><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Note that the uploaded meshes cannot be modified and hence <a href=\"https:\/\/www.simscale.com\/docs\/cad-preparation\/cad-mode\/\">CAD editing<\/a> operations cannot be performed on them.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In some instances, the user might be interested in generating mesh in a local environment and use SimScale to apply...","protected":false},"author":5,"featured_media":0,"parent":14059,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"templates\/template-documentation.php","meta":{"_acf_changed":false,"_crdt_document":"","inline_featured_image":false,"footnotes":""},"class_list":["post-20104","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.simscale.com\/wp-json\/wp\/v2\/pages\/20104","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.simscale.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.simscale.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.simscale.com\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.simscale.com\/wp-json\/wp\/v2\/comments?post=20104"}],"version-history":[{"count":0,"href":"https:\/\/www.simscale.com\/wp-json\/wp\/v2\/pages\/20104\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/www.simscale.com\/wp-json\/wp\/v2\/pages\/14059"}],"wp:attachment":[{"href":"https:\/\/www.simscale.com\/wp-json\/wp\/v2\/media?parent=20104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}