Nastran, Abaqus & StarCD are other options which might be useful…maybe ?♂️ The general gist If you just want to export the meshed geometry, to take into CAD for example, then you could use obj or stl formats. There are loads of output formats, but I suggest using vtp or ensight if you’re exporting fields ( p, U etc). Secondly, you can compress lots of named patches into a single exported surface, which makes subsequent post-pro ops much easier. It’s a bit much to cover it all in one email, so I’ll just stick to exporting patches for today.įor that use case it has two really nice features…įirstly, it produces serial/reconstructed assets even when run against a parallel/decomposed case – no need to reconstruct anything beforehand ? The sampledSurfaces functionObject is a big one, able to extract all sorts of surfaces, from cut planes to patches, isosurfaces to faceZones. I export most of these assets using sampledSurfaces. I then take these lightweight post-pro assets into ParaView and create my images. So, at the end of a simulation, I calculate all the additional fields I need (total pressure, pressure coefficient, wall shear stress etc) & then export any slices, surfaces, streamlines & isosurfaces from OpenFOAM, in parallel, on the cluster. My post-pro workflow is designed to avoid having to reconstruct parallel cases (too slow) & to avoid reading the entire volume mesh into a single machine (a hardware bottleneck).
I’ll throw in a couple of tips, share why one format is particularly good for transient data & share a simple export gist.īut first, a quick question… Why export surfaces? So, instead of walking you through glTF, I’ll talk about the formats we can actually use when exporting surfaces. I’d thought that the new glTF format could be used to export surfaces, it turns out it’s currently just for points & particle tracks. NewValues.It’s Robin from CFD Engine & this was going to be an email about a new export format in OpenFOAM v2112, but it appears that I can’t actually read ? add a new value to the array that adds or subtracts just the right amount for each blank cell between the first and last value Var rangeToFill = sheet.getRange(rangeRow+1, rangeColumn, length-2) Here's the code: //setup the menu so it can run from the sheet ui Select 'do it!' from the custom menu and it'll fill automatically. Highlight the range making sure the top and bottom cells contain the two values. It can work with a range of any height in a single column (it won't work with rows). Make a vertical selection, including the two values you wish to complete. Var newValue = first + ((last - first) * (i / (length - 1))) Var rangeToFill = sheet.getRange(rangeRow, rangeColumn, length) determine the new range to be filled and setup an array to fill it get the length (or height) of the range and the first and last values Var ss = SpreadsheetApp.getActiveSpreadsheet()
Use Tools/Script Editor, paste this code in: function onOpen()
Thanks to u/narnox for the step in the right direction! I have modified your code a little bit. How do I automatically fill arbitrary amount of cells between two known values? Ideally, select two cells, and have the ones between them auto-fill as painless and as fast as possible. Simple question but I've been googling this for two days to no avail.