|
[Sponsors] |
Automating Mesh Database (.mshdb) to CGNS Conversion in ANSYS 2021 R2 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 26, 2024, 17:43 |
Automating Mesh Database (.mshdb) to CGNS Conversion in ANSYS 2021 R2
|
#1 |
New Member
Join Date: Jul 2024
Posts: 2
Rep Power: 0 |
Hello everybody,
I have a couple of mesh database files (.mshdb) and I want to convert all of them to CGNS in an automated process. I’m using ANSYS 2021 R2. I cannot use PyMechanical unfortunately, and no matter what I do with ACT, using Journal, using CFX-Pre, or using Fluent, it’s not working. I can convert them manually one by one, but I’m just wondering if there is a way to do it in batch mode or using IronPython or any other ideas. Thank you. |
|
July 28, 2024, 13:52 |
|
#2 |
New Member
Join Date: Jul 2024
Posts: 2
Rep Power: 0 |
Solved by myself:
Not fully automated (like APDL and batch script) but still working. I used WB, File --> Scripting --> Run script --> choose python code (Iron python code!). First upload the project Code:
Open(FilePath = Wbpj_path) Code:
dp0 = Parameters.GetDesignPoint(Name= "0") Parameters.SetBaseDesignPoint(DesignPoint=dp0) Anyways updating Mesh: Code:
# Update Mesh system0 = GetSystem(Name="SYS") meshC0 = system0.GetComponent(Name="Mesh") meshC0.Update(AllDependencies=True) Code:
mesh1 = system1.GetContainer(ComponentName="Mesh") mesh1.Edit() export_command = '''DS = WB.AppletList.Applet('DSApplet').App;DS.Script.doFileExport("F:\dump_here\SYS.cgns")''' # Execute mesh1.SendCommand(Command=export_command) and finally exit Code:
mesh1.Exit() Last edited by aliazar; July 28, 2024 at 14:36. Reason: Add more explanation |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to set periodic boundary conditions | Ganesh | FLUENT | 15 | November 18, 2020 07:09 |
decomposePar problem: Cell 0contains face labels out of range | vaina74 | OpenFOAM Pre-Processing | 37 | July 20, 2020 06:38 |
Can you help me with a problem in ansys static structural solver? | sourabh.porwal | Structural Mechanics | 0 | March 27, 2016 18:07 |
Ansys SIG$ILL error | loth | ANSYS | 3 | December 24, 2015 06:31 |
fluent add additional zones for the mesh file | SSL | FLUENT | 2 | January 26, 2008 12:55 |