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

[ICEM] ICEM in batch mode : determinant

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 16, 2015, 11:15
Default ICEM in batch mode : determinant
  #1
New Member
 
Join Date: Jul 2015
Posts: 4
Rep Power: 11
baba@cfd is on a distinguished road
Hello,

I'm trying to write a simple script in batch mode which calculates the Determinant min (mesh quality) of a mesh.

For the moment I tried:

ic_empty_tetin
ic_read_external C://[path]/readcgns.exe D:/users/toto/Desktop/test.cgns
ic_str_metric Determinant {1 2 3 4 5 6 7 8 9 10 11 12 13 14 15}

I launch this through the ICEM batch mode (C:/icemcfd -batch -script myscript.rpl)
But it doesn't work. In fact it is not doing anything.
I think it calculates the stuff but how can I ask him to print the results or to write it in a file?

I am thankful for any help!
baba@cfd is offline   Reply With Quote

Old   July 21, 2015, 05:40
Default
  #2
New Member
 
Join Date: Jul 2015
Posts: 4
Rep Power: 11
baba@cfd is on a distinguished road
No one can help me please ?
baba@cfd is offline   Reply With Quote

Old   July 23, 2015, 09:20
Default
  #3
New Member
 
Sune Niemann
Join Date: Aug 2011
Posts: 18
Rep Power: 15
Sune is on a distinguished road
You can try this approach:

Code:
set diag [ic_str_metric Determinant {1 2 3 4 5 6 7 8 9 10 11 12 13 14 15}]

set d0 [lindex $diag 0]
set d1 [lindex $diag 1]
set d2 [lindex $diag 2]
set d3 [lindex $diag 3]
set d4 [lindex $diag 4]
set d5 [lindex $diag 5]

if $d0 {
mess "Determinant:\n   Min = $d3\n   Max = $d4\n   Mean = [expr $d5 / ($d0 + 0.0)"
} else {
mess "Error! Domain most likely incorrectly defined"
}
Sune is offline   Reply With Quote

Old   July 27, 2015, 05:51
Default
  #4
New Member
 
Join Date: Jul 2015
Posts: 4
Rep Power: 11
baba@cfd is on a distinguished road
Hi,

Thanks a lot for your help. It works well !!

Is there any option to select all the domains in my mesh for the calculation of the determinant instead of writing {1 2 3 4 5 6 7 8 9 10 11 12 13 14 15} ?
baba@cfd is offline   Reply With Quote

Old   July 27, 2015, 07:09
Default
  #5
New Member
 
Sune Niemann
Join Date: Aug 2011
Posts: 18
Rep Power: 15
Sune is on a distinguished road
The ICEM Programmer's Guide gives little help for this function:
Code:
ic_str_metric type domains
I guess the s in domains indicates that it can take a list of domains.
You can build a list of all domains like this:
Code:
set doms ""
foreach dom [ic_str_list_entities domain] {
    lappend doms $dom
}
/Sune
Sune is offline   Reply With Quote

Old   July 27, 2015, 08:24
Default
  #6
New Member
 
Join Date: Jul 2015
Posts: 4
Rep Power: 11
baba@cfd is on a distinguished road
In fact it works just with the command : ic_str_list_entities domain.
It builds the list I wanted.

Thank you Sune !
baba@cfd is offline   Reply With Quote

Reply

Tags
batch mode, determinant, icem 15.0


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
[ICEM] icem cfd batch mode srobin11 ANSYS Meshing & Geometry 20 August 2, 2020 19:40
[PyFoam] Problems with the new PyFoam release zfaraday OpenFOAM Community Contributions 13 December 9, 2014 19:58
[PyFoam] having problems with pyfoam Installation vitorspadetoventurin OpenFOAM Community Contributions 3 December 2, 2014 08:18
[ICEM] ICEM CFD error when running in batch mode bgp723 ANSYS Meshing & Geometry 0 August 14, 2014 14:45
Batch mode ICEM CFD parametrization problem sportsfun ANSYS 0 December 19, 2012 15:20


All times are GMT -4. The time now is 06:43.