CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

TUI command for Mesh Scale info

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 1 Post By AlexanderZ
  • 1 Post By LuckyTran

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 14, 2019, 12:25
Default TUI command for Mesh Scale info
  #1
New Member
 
Mikel
Join Date: Mar 2019
Posts: 12
Rep Power: 3
Xabierenko is on a distinguished road
Hi! I'm working with the aas toolbox in Matlab and I would like to obtain the minimum and maximum length scales of the mesh in order to automatically set de parameters for my dynamical mesh. I leave a screen caption in order to better showcase what I'm looking for.
Attached Images
File Type: jpg Captura.JPG (65.3 KB, 14 views)
Xabierenko is offline   Reply With Quote

Old   March 14, 2019, 14:35
Default
  #2
Senior Member
 
Lucky Tran
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 4,013
Rep Power: 48
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
I don't know the answer but I can tell you how to find out.


Just press enter and all available non-hidden TUI commands will show up.
LuckyTran is offline   Reply With Quote

Old   March 14, 2019, 20:31
Default
  #3
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 1,332
Rep Power: 20
AlexanderZ will become famous soon enough
Code:
mesh check
how you will use it I dont know

best regards
AlexanderZ is offline   Reply With Quote

Old   March 15, 2019, 02:58
Default
  #4
New Member
 
Mikel
Join Date: Mar 2019
Posts: 12
Rep Power: 3
Xabierenko is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
I don't know the answer but I can tell you how to find out.


Just press enter and all available non-hidden TUI commands will show up.
Thanks for the fast response. Yeah, I have been looking througout all the commands and I don't manage to find it. I don't understand why it is not in /define/dynamic-mesh/controls/remeshing-parameters . I mean you can define the max and min length scale there but I need to know the parameters of the specific mesh in order to properly do that.
Xabierenko is offline   Reply With Quote

Old   March 15, 2019, 03:00
Default
  #5
New Member
 
Mikel
Join Date: Mar 2019
Posts: 12
Rep Power: 3
Xabierenko is on a distinguished road
Quote:
Originally Posted by AlexanderZ View Post
Code:
mesh check
how you will use it I dont know

best regards
Thanks for your answer. I think it is not the same thing I'm looking for.
Attached Images
File Type: jpg Captura.JPG (54.7 KB, 6 views)
Xabierenko is offline   Reply With Quote

Old   March 15, 2019, 03:58
Default
  #6
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 1,332
Rep Power: 20
AlexanderZ will become famous soon enough
Code:
(rpgetvar 'dynamesh/remesh/max-length-scale)
(rpgetvar 'dynamesh/remesh/min-length-scale)
if you want to set other values than

Code:
(rpsetvar 'dynamesh/remesh/max-length-scale 777.77)
(rpsetvar 'dynamesh/remesh/min-length-scale 1313.13)
best regards
Xabierenko likes this.
AlexanderZ is offline   Reply With Quote

Old   March 15, 2019, 04:33
Default
  #7
New Member
 
Mikel
Join Date: Mar 2019
Posts: 12
Rep Power: 3
Xabierenko is on a distinguished road
Quote:
Originally Posted by AlexanderZ View Post
Code:
(rpgetvar 'dynamesh/remesh/max-length-scale)
(rpgetvar 'dynamesh/remesh/min-length-scale)
if you want to set other values than

Code:
(rpsetvar 'dynamesh/remesh/max-length-scale 777.77)
(rpsetvar 'dynamesh/remesh/min-length-scale 1313.13)
best regards
Thank you very much!!!!!! That is what I needed.
Xabierenko is offline   Reply With Quote

Old   March 15, 2019, 04:44
Default
  #8
New Member
 
Mikel
Join Date: Mar 2019
Posts: 12
Rep Power: 3
Xabierenko is on a distinguished road
Quote:
Originally Posted by AlexanderZ View Post
Code:
(rpgetvar 'dynamesh/remesh/max-length-scale)
(rpgetvar 'dynamesh/remesh/min-length-scale)
if you want to set other values than

Code:
(rpsetvar 'dynamesh/remesh/max-length-scale 777.77)
(rpsetvar 'dynamesh/remesh/min-length-scale 1313.13)
best regards
Sorry for bothering you again but do you know where could I look for all the existing variables I can retrieve with rpgetvar? I would like to automatically assess the amount of boundaries and their size (number of facets).

Thanks again!
Xabierenko is offline   Reply With Quote

Old   March 15, 2019, 12:39
Default
  #9
Senior Member
 
Lucky Tran
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 4,013
Rep Power: 48
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Quote:
Originally Posted by Xabierenko View Post
Sorry for bothering you again but do you know where could I look for all the existing variables I can retrieve with rpgetvar? I would like to automatically assess the amount of boundaries and their size (number of facets).

Thanks again!
Save the .cas file as an ascii file (and not binary). It is default anyway ascii.

Open it with a text editor. You can inspect line by line all the available variables that rpgetvar can retrieve.


Do this on a case with a very small mesh if you don't want to open a huge file.
Xabierenko likes this.
LuckyTran is offline   Reply With Quote

Old   March 15, 2019, 12:44
Default
  #10
New Member
 
Mikel
Join Date: Mar 2019
Posts: 12
Rep Power: 3
Xabierenko is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
Save the .cas file as an ascii file (and not binary). It is default anyway ascii.

Open it with a text editor. You can inspect line by line all the available variables that rpgetvar can retrieve.


Do this on a case with a very small mesh if you don't want to open a huge file.
Your help has been invaluable. Thanks!!

Best regards
Xabierenko is offline   Reply With Quote

Old   April 1, 2020, 07:49
Default
  #11
New Member
 
Judith Fonken
Join Date: Jan 2020
Posts: 6
Rep Power: 2
Juud is on a distinguished road
Quote:
Originally Posted by Xabierenko View Post
Your help has been invaluable. Thanks!!

Best regards
Hi Xabierenko,

Do you know if it's possible to set the default options for the remeshing parameters using text command? Or to retrieve the min/max length for the current mesh. I couldn't find the right command in the case file.

Thank you in advance!

Best,
Juud
Juud is offline   Reply With Quote

Reply

Tags
aas, fluent, matlab, tui commands

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[Gmsh] 3D coil mesh: can't create the volume? RomainBou OpenFOAM Meshing & Mesh Conversion 3 July 18, 2016 05:09
[Gmsh] Cgns support for gmsh robyTKD OpenFOAM Meshing & Mesh Conversion 1 July 13, 2016 11:27
TUI command for grid scale in mm Ralf Schmidt Fluent UDF and Scheme Programming 2 March 16, 2009 06:06
mesh scale info Dave FLUENT 1 July 9, 2007 14:33
OpenFOAM with Cygwin kitchener OpenFOAM Installation 6 April 24, 2006 23:09


All times are GMT -4. The time now is 13:51.