|
[Sponsors] |
July 16, 2015, 11:15 |
ICEM in batch mode : determinant
|
#1 |
New Member
Join Date: Jul 2015
Posts: 4
Rep Power: 11 |
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! |
|
July 21, 2015, 05:40 |
|
#2 |
New Member
Join Date: Jul 2015
Posts: 4
Rep Power: 11 |
No one can help me please ?
|
|
July 23, 2015, 09:20 |
|
#3 |
New Member
Sune Niemann
Join Date: Aug 2011
Posts: 18
Rep Power: 15 |
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" } |
|
July 27, 2015, 05:51 |
|
#4 |
New Member
Join Date: Jul 2015
Posts: 4
Rep Power: 11 |
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} ? |
|
July 27, 2015, 07:09 |
|
#5 |
New Member
Sune Niemann
Join Date: Aug 2011
Posts: 18
Rep Power: 15 |
The ICEM Programmer's Guide gives little help for this function:
Code:
ic_str_metric type domains You can build a list of all domains like this: Code:
set doms "" foreach dom [ic_str_list_entities domain] { lappend doms $dom } |
|
July 27, 2015, 08:24 |
|
#6 |
New Member
Join Date: Jul 2015
Posts: 4
Rep Power: 11 |
In fact it works just with the command : ic_str_list_entities domain.
It builds the list I wanted. Thank you Sune ! |
|
Tags |
batch mode, determinant, icem 15.0 |
|
|
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 |