text: !function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=27)}([function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.__esModule=!0,e.extend=u,e.indexOf=function(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},e.escapeExpression=function(t){if("string"!=typeof t){if(t&&t.toHTML)return t.toHTML();if(null==t)return"";if(!t)return t+"";t=""+t}if(!i.test(t))return t;return t.replace(a,l)},e.isEmpty=function(t){return!t&&0!==t||!(!f(t)||0!==t.length)},e.createFrame=function(t){var e=u({},t);return e._parent=t,e},e.blockParams=function(t,e){return t.path=e,t},e.appendContextPath=function(t,e){return(t?t+".":"")+e};var o={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},a=/[&<>"'`=]/g,i=/[&<>"'`=]/;function l(t){return o[t]}function u(t){for(var e=1;e<arguments.length;e++)for(var n in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],n)&&(t[n]=arguments[e][n]);return t}var s=Object.prototype.toString;e.toString=s;var c=function(t){return"function"==typeof t};c(/x/)&&(e.isFunction=c=function(t){return"function"==typeof t&&"[object Function]"===s.call(t)}),e.isFunction=c;var f=Array.isArray||function(t){return!(!t||"object"!==(void 0===t?"undefined":r(t)))&&"[object Array]"===s.call(t)};e.isArray=f},function(t,e,n){"use strict";e.__esModule=!0;var r=["description","fileName","lineNumber","message","name","number","stack"];function o(t,e){var n=e&&e.loc,a=void 0,i=void 0;n&&(t+=" - "+(a=n.start.line)+":"+(i=n.start.column));for(var l=Error.prototype.constructor.call(this,t),u=0;u<r.length;u++)this[r[u]]=l[r[u]];Error.captureStackTrace&&Error.captureStackTrace(this,o);try{n&&(this.lineNumber=a,Object.defineProperty?Object.defineProperty(this,"column",{value:i,enumerable:!0}):this.column=i)}catch(t){}}o.prototype=new Error,e.default=o,t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.HandlebarsEnvironment=s;var o=n(0),a=r(n(1)),i=n(17),l=n(9),u=r(n(7));e.VERSION="4.0.11";e.COMPILER_REVISION=7;e.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0"};function s(t,e,n){this.helpers=t||{},this.partials=e||{},this.decorators=n||{},i.registerDefaultHelpers(this),l.registerDefaultDecorators(this)}s.prototype={constructor:s,logger:u.default,log:u.default.log,registerHelper:function(t,e){if("[object Object]"===o.toString.call(t)){if(e)throw new a.default("Arg not supported with multiple helpers");o.extend(this.helpers,t)}else this.helpers[t]=e},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,e){if("[object Object]"===o.toString.call(t))o.extend(this.partials,t);else{if(void 0===e)throw new a.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=e}},unregisterPartial:function(t){delete this.partials[t]},registerDecorator:function(t,e){if("[object Object]"===o.toString.call(t)){if(e)throw new a.default("Arg not supported with multiple decorators");o.extend(this.decorators,t)}else this.decorators[t]=e},unregisterDecorator:function(t){delete this.decorators[t]}};var c=u.default.log;e.log=c,e.createFrame=o.createFrame,e.logger=u.default},function(t,e,n){"use strict";var r,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"===("undefined"==typeof window?"undefined":o(window))&&(r=window)}t.exports=r},function(t,e,n){"use strict";(function(n){e.__esModule=!0,e.default=function(t){var e=void 0!==n?n:window,r=e.Handlebars;t.noConflict=function(){return e.Handlebars===t&&(e.Handlebars=r),t}},t.exports=e.default}).call(this,n(3))},function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.__esModule=!0,e.checkRevision=function(t){var e=t&&t[0]||1,n=u.COMPILER_REVISION;if(e!==n){if(e<n){var r=u.REVISION_CHANGES[n],o=u.REVISION_CHANGES[e];throw new l.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+r+") or downgrade your runtime to an older version ("+o+").")}throw new l.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}},e.template=function(t,e){if(!e)throw new l.default("No environment passed to template");if(!t||!t.main)throw new l.default("Unknown template object: "+(void 0===t?"undefined":r(t)));t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var n={strict:function(t,e){if(!(e in t))throw new l.default('"'+e+'" not defined in '+t);return t[e]},lookup:function(t,e){for(var n=t.length,r=0;r<n;r++)if(t[r]&&null!=t[r][e])return t[r][e]},lambda:function(t,e){return"function"==typeof t?t.call(e):t},escapeExpression:a.escapeExpression,invokePartial:function(n,r,o){o.hash&&(r=a.extend({},r,o.hash),o.ids&&(o.ids[0]=!0));n=e.VM.resolvePartial.call(this,n,r,o);var i=e.VM.invokePartial.call(this,n,r,o);null==i&&e.compile&&(o.partials[o.name]=e.compile(n,t.compilerOptions,e),i=o.partials[o.name](r,o));if(null!=i){if(o.indent){for(var u=i.split("\n"),s=0,c=u.length;s<c&&(u[s]||s+1!==c);s++)u[s]=o.indent+u[s];i=u.join("\n")}return i}throw new l.default("The partial "+o.name+" could not be compiled when running in runtime-only mode")},fn:function(e){var n=t[e];return n.decorator=t[e+"_d"],n},programs:[],program:function(t,e,n,r,o){var a=this.programs[t],i=this.fn(t);return e||o||r||n?a=s(this,t,i,e,n,r,o):a||(a=this.programs[t]=s(this,t,i)),a},data:function(t,e){for(;t&&e--;)t=t._parent;return t},merge:function(t,e){var n=t||e;return t&&e&&t!==e&&(n=a.extend({},e,t)),n},nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function o(e){var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],a=r.data;o._setup(r),!r.partial&&t.useData&&(a=function(t,e){e&&"root"in e||((e=e?u.createFrame(e):{}).root=t);return e}(e,a));var i=void 0,l=t.useBlockParams?[]:void 0;function s(e){return""+t.main(n,e,n.helpers,n.partials,a,l,i)}return t.useDepths&&(i=r.depths?e!=r.depths[0]?[e].concat(r.depths):r.depths:[e]),(s=f(t.main,s,n,r.depths||[],a,l))(e,r)}return o.isTop=!0,o._setup=function(r){r.partial?(n.helpers=r.helpers,n.partials=r.partials,n.decorators=r.decorators):(n.helpers=n.merge(r.helpers,e.helpers),t.usePartial&&(n.partials=n.merge(r.partials,e.partials)),(t.usePartial||t.useDecorators)&&(n.decorators=n.merge(r.decorators,e.decorators)))},o._child=function(e,r,o,a){if(t.useBlockParams&&!o)throw new l.default("must pass block params");if(t.useDepths&&!a)throw new l.default("must pass parent depths");return s(n,e,t[e],r,0,o,a)},o},e.wrapProgram=s,e.resolvePartial=function(t,e,n){t?t.call||n.name||(n.name=t,t=n.partials[t]):t="@partial-block"===n.name?n.data["partial-block"]:n.partials[n.name];return t},e.invokePartial=function(t,e,n){var r=n.data&&n.data["partial-block"];n.partial=!0,n.ids&&(n.data.contextPath=n.ids[0]||n.data.contextPath);var o=void 0;n.fn&&n.fn!==c&&function(){n.data=u.createFrame(n.data);var t=n.fn;o=n.data["partial-block"]=function(e){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return n.data=u.createFrame(n.data),n.data["partial-block"]=r,t(e,n)},t.partials&&(n.partials=a.extend({},n.partials,t.partials))}();void 0===t&&o&&(t=o);if(void 0===t)throw new l.default("The partial "+n.name+" could not be found");if(t instanceof Function)return t(e,n)},e.noop=c;var o,a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(0)),i=n(1),l=(o=i)&&o.__esModule?o:{default:o},u=n(2);function s(t,e,n,r,o,a,i){function l(e){var o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],l=i;return!i||e==i[0]||e===t.nullContext&&null===i[0]||(l=[e].concat(i)),n(t,e,t.helpers,t.partials,o.data||r,a&&[o.blockParams].concat(a),l)}return(l=f(n,l,t,i,r,a)).program=e,l.depth=i?i.length:0,l.blockParams=o||0,l}function c(){return""}function f(t,e,n,r,o,i){if(t.decorator){var l={};e=t.decorator(e,l,n,r&&r[0],o,i,r),a.extend(e,l)}return e}},function(t,e,n){"use strict";function r(t){this.string=t}e.__esModule=!0,r.prototype.toString=r.prototype.toHTML=function(){return""+this.string},e.default=r,t.exports=e.default},function(t,e,n){"use strict";e.__esModule=!0;var r=n(0),o={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(t){if("string"==typeof t){var e=r.indexOf(o.methodMap,t.toLowerCase());t=e>=0?e:parseInt(t,10)}return t},log:function(t){if(t=o.lookupLevel(t),"undefined"!=typeof console&&o.lookupLevel(o.level)<=t){var e=o.methodMap[t];console[e]||(e="log");for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];console[e].apply(console,r)}}};e.default=o,t.exports=e.default},function(t,e,n){"use strict";e.__esModule=!0;var r=n(0);e.default=function(t){t.registerDecorator("inline",function(t,e,n,o){var a=t;return e.partials||(e.partials={},a=function(o,a){var i=n.partials;n.partials=r.extend({},i,e.partials);var l=t(o,a);return n.partials=i,l}),e.partials[o.args[0]]=o.fn,a})},t.exports=e.default},function(t,e,n){"use strict";e.__esModule=!0,e.registerDefaultDecorators=function(t){a.default(t)};var r,o=n(8),a=(r=o)&&r.__esModule?r:{default:r}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(0);e.default=function(t){t.registerHelper("with",function(t,e){r.isFunction(t)&&(t=t.call(this));var n=e.fn;if(r.isEmpty(t))return e.inverse(this);var o=e.data;return e.data&&e.ids&&((o=r.createFrame(e.data)).contextPath=r.appendContextPath(e.data.contextPath,e.ids[0])),n(t,{data:o,blockParams:r.blockParams([t],[o&&o.contextPath])})})},t.exports=e.default},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t){t.registerHelper("lookup",function(t,e){return t&&t[e]})},t.exports=e.default},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t){t.registerHelper("log",function(){for(var e=[void 0],n=arguments[arguments.length-1],r=0;r<arguments.length-1;r++)e.push(arguments[r]);var o=1;null!=n.hash.level?o=n.hash.level:n.data&&null!=n.data.level&&(o=n.data.level),e[0]=o,t.log.apply(t,e)})},t.exports=e.default},function(t,e,n){"use strict";e.__esModule=!0;var r=n(0);e.default=function(t){t.registerHelper("if",function(t,e){return r.isFunction(t)&&(t=t.call(this)),!e.hash.includeZero&&!t||r.isEmpty(t)?e.inverse(this):e.fn(this)}),t.registerHelper("unless",function(e,n){return t.helpers.if.call(this,e,{fn:n.inverse,inverse:n.fn,hash:n.hash})})},t.exports=e.default},function(t,e,n){"use strict";e.__esModule=!0;var r,o=n(1),a=(r=o)&&r.__esModule?r:{default:r};e.default=function(t){t.registerHelper("helperMissing",function(){if(1!==arguments.length)throw new a.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},t.exports=e.default},function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.__esModule=!0;var o,a=n(0),i=n(1),l=(o=i)&&o.__esModule?o:{default:o};e.default=function(t){t.registerHelper("each",function(t,e){if(!e)throw new l.default("Must pass iterator to #each");var n=e.fn,o=e.inverse,i=0,u="",s=void 0,c=void 0;function f(e,r,o){s&&(s.key=e,s.index=r,s.first=0===r,s.last=!!o,c&&(s.contextPath=c+e)),u+=n(t[e],{data:s,blockParams:a.blockParams([t[e],e],[c+e,null])})}if(e.data&&e.ids&&(c=a.appendContextPath(e.data.contextPath,e.ids[0])+"."),a.isFunction(t)&&(t=t.call(this)),e.data&&(s=a.createFrame(e.data)),t&&"object"===(void 0===t?"undefined":r(t)))if(a.isArray(t))for(var d=t.length;i<d;i++)i in t&&f(i,i,i===t.length-1);else{var p=void 0;for(var h in t)t.hasOwnProperty(h)&&(void 0!==p&&f(p,i-1),p=h,i++);void 0!==p&&f(p,i-1,!0)}return 0===i&&(u=o(this)),u})},t.exports=e.default},function(t,e,n){"use strict";e.__esModule=!0;var r=n(0);e.default=function(t){t.registerHelper("blockHelperMissing",function(e,n){var o=n.inverse,a=n.fn;if(!0===e)return a(this);if(!1===e||null==e)return o(this);if(r.isArray(e))return e.length>0?(n.ids&&(n.ids=[n.name]),t.helpers.each(e,n)):o(this);if(n.data&&n.ids){var i=r.createFrame(n.data);i.contextPath=r.appendContextPath(n.data.contextPath,n.name),n={data:i}}return a(e,n)})},t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.registerDefaultHelpers=function(t){o.default(t),a.default(t),i.default(t),l.default(t),u.default(t),s.default(t),c.default(t)};var o=r(n(16)),a=r(n(15)),i=r(n(14)),l=r(n(13)),u=r(n(12)),s=r(n(11)),c=r(n(10))},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}e.__esModule=!0;var a=o(n(2)),i=r(n(6)),l=r(n(1)),u=o(n(0)),s=o(n(5)),c=r(n(4));function f(){var t=new a.HandlebarsEnvironment;return u.extend(t,a),t.SafeString=i.default,t.Exception=l.default,t.Utils=u,t.escapeExpression=u.escapeExpression,t.VM=s,t.template=function(e){return s.template(e,t)},t}var d=f();d.create=f,c.default(d),d.default=d,e.default=d,t.exports=e.default},function(t,e,n){"use strict";t.exports=n(18).default},function(t,e,n){var r=n(19);t.exports=(r.default||r).template({compiler:[7,">= 4.0.0"],main:function(t,e,n,r,o){var a,i,l=null!=e?e:t.nullContext||{},u=n.helperMissing;return"#!/bin/bash\n\ncd $1\n\nmodule load openfoam_switcher\n. switchFoam 6\n\n# Tutorial example\ncp -r $FOAM_TUTORIALS/incompressible/icoFoam/cavity/cavity .\n\ncd cavity\n\nsed -i 's/0.01/"+(null!=(a="function"==typeof(i=null!=(i=n.nu||(null!=e?e.nu:e))?i:u)?i.call(l,{name:"nu",hash:{},data:o}):i)?a:"")+"/' constant/transportProperties\nsed -i 's/0.005/"+(null!=(a="function"==typeof(i=null!=(i=n.deltaT||(null!=e?e.deltaT:e))?i:u)?i.call(l,{name:"deltaT",hash:{},data:o}):i)?a:"")+"/' system/controlDict\nsed -i 's/0.5/"+(null!=(a="function"==typeof(i=null!=(i=n.endTime||(null!=e?e.endTime:e))?i:u)?i.call(l,{name:"endTime",hash:{},data:o}):i)?a:"")+"/' system/controlDict\n\nblockMesh\n\nfoamJob -wait icoFoam\nfoamToVTK\n\n# Make dataset readable by PV\ntouch dataset.foam\n\n# Unzip any obj file so they can be used as context\nfind . -name *.obj.gz -exec gzip -dk {} \\;\n\n# Gather context shapes in ../context\nmkdir -p ../context\ncd ../context\nfind ../cavity -name *.obj -exec ln -s {} ../context/ \\;"},useData:!0})},function(t,e,n){"use strict";var r=n(20);t.exports=function(t){var e={};console.log("dataModel",t);try{var n=t.data.CavityFields[0].attr1.nu.value[0],o=t.data.CavityFields[0].attr1.deltaT.value[0],a=t.data.CavityFields[0].attr1.endTime.value[0];e["run.sh"]=r({nu:n,deltaT:o,endTime:a})}catch(t){console.log("Error trying to convert model for generating run.sh",t)}return{results:e,error:null}}},function(t){t.exports={views:{SingleView:"Single View"},attributes:{attr1:{title:"Attribute 1",parameters:{nu:"nu",deltaT:"deltaT",endTime:"endTime"}},double:{title:"Double",parameters:{nu:"nu",deltaT:"deltaT",endTime:"endTime"}}}}},function(t,e,n){"use strict";t.exports={"label.json":n(22)}},function(t,e,n){"use strict";t.exports={en:n(23)}},function(t){t.exports={order:["CavityFields"],views:{CavityFields:{attributes:["attr1"]}},definitions:{attr1:{parameters:[{id:"nu",type:"double",default:0},{id:"deltaT",type:"double",size:0,default:0},{id:"endTime",type:"double",size:0,default:0}]}}}},function(t,e,n){"use strict";t.exports={type:"openfoam_cavity_test",model:n(25),lang:n(24),convert:n(21),parse:null}},function(t,e,n){(function(e){e.Simput||(e.Simput={}),e.Simput.types||(e.Simput.types={}),t.exports=e.Simput.types.openfoam_cavity_test=n(26)}).call(this,n(3))}]);