CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[blockMesh] Parametric Multigrading

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 26, 2016, 13:56
Default Parametric Multigrading
  #1
New Member
 
Mauricio Aguilar
Join Date: Jul 2016
Posts: 15
Rep Power: 10
MauricioAguilar is on a distinguished road
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
MauricioAguilar is offline   Reply With Quote

Old   August 29, 2016, 23:38
Default
  #2
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 16
Antimony is on a distinguished road
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
Antimony is offline   Reply With Quote

Old   August 31, 2016, 07:22
Default
  #3
New Member
 
Mauricio Aguilar
Join Date: Jul 2016
Posts: 15
Rep Power: 10
MauricioAguilar is on a distinguished road
Hi Antimony,

I supposed it wouldn't be possible. I'll try "Info <<" and will post any updates.
Thanks.

regards.
MauricioAguilar is offline   Reply With Quote

Reply

Tags
blockmesh, debug, multigrading, parameterization, printf


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 09:48.