|
[Sponsors] |
August 26, 2016, 13:56 |
Parametric Multigrading
|
#1 |
New Member
Mauricio Aguilar
Join Date: Jul 2016
Posts: 15
Rep Power: 10 |
Hello foamers,
I'm using an extra file (parameters) to source all my variables into blockMeshDict and topoSetDict so I can easily adjust my geometry. I have just finished including the multigrading section in BlockMeshDict and I'm getting supper weird results when including variables from "parameters"...if I define all multigrading parameters this way I even get a seg-fault. Using some hardcoded values allows blockMesh to solve but it does so with weird values. Is there something similar to Printf with which I can print my variables after they were parsed? I'm looking for a way to debug my code. I have included my blockMeshDict and parameters file in case anyone wants to give it a try. In blockMeshDict lines [42-47] i've hardcoded the values that should come from the calculated parameters established in parameters lines [117-123]. I've commented out the solution I would like to employ. blockMeshDict.txt parameters.txt Any help is greatly appreciated. kind regards, Mauricio |
|
August 29, 2016, 23:38 |
|
#2 |
Senior Member
Join Date: Aug 2013
Posts: 407
Rep Power: 16 |
Hi,
AFAIK, it isn't possible to output anything from blockMeshDict. This is probably because the dictionary is just that, a dictionary, and so OF is very clear in the type of information it needs in a dictionary under each of the headings. In blockMesh you can probably add "Info << " to output what you want, but at the moment I do not know how you will be able to access the particular point/value you are looking for. Hope this clarifies. Cheers, Antimony |
|
August 31, 2016, 07:22 |
|
#3 |
New Member
Mauricio Aguilar
Join Date: Jul 2016
Posts: 15
Rep Power: 10 |
Hi Antimony,
I supposed it wouldn't be possible. I'll try "Info <<" and will post any updates. Thanks. regards. |
|
Tags |
blockmesh, debug, multigrading, parameterization, printf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Parametric study by Ansys Workbench | Sahar FaPerhu | ANSYS | 17 | August 23, 2017 04:29 |
Problem with Parametric Study | Picopico | CFX | 1 | March 7, 2017 18:56 |
[ICEM] Parametric O-grid and Parametric Split | Henry Arrigo | ANSYS Meshing & Geometry | 3 | October 20, 2014 06:32 |
parametric study with design modeler and icepak | aminem | ANSYS | 3 | May 21, 2014 06:11 |
Comsol (4.3): convert parametric surface into block? | sgalaz | COMSOL | 0 | November 9, 2012 10:20 |