CHenk 0 Report post Posted May 15, 2023 Hello, I would like to integrate Caeses into HEEDS for an optimisation. For this, Caeses should build the geometry for each design point and then export it as STL. My current problem is that I don't know how to correctly include the export command in the fsc file. Does anyone have a simple example that I could use to understand this? Cheers, Clara Share this post Link to post Share on other sites
Mr. Mattia Brenner 6 Report post Posted May 15, 2023 Hi Clara, you can find information about how to set up a script file for controlling CAESES in batch mode in the corresponding section in our documentation: Let us know if you have additional questions. Cheers, Mattia Share this post Link to post Share on other sites
CHenk 0 Report post Posted May 15, 2023 Hi, I found the documentation and also tried it out using these instructions, but there were still some things that were unclear to me, so I would like to ask some more questions. To test the process, I took the "Impeller Model" from the samples. I have exported the individual components as described in the documentation. The documentation describes that I can than create the fsc-file via "file > export > FSC (CAESES Script)". However, when I go to Export in Caeses 5, only an ffw-file is suggested (see screenshot). I think this is something different, right? Where can I find the Export described in the documentation? In the impeller example, however, there is the "export" section where I can also select FSC. I have done that, is that the right way? The created fsc-file looks similar to the one in the documentation. The point where I still have problems is "Export Single Objects". I wanted to include a command in the fsc-file to automatically export the geometry as an stl-file (for example). I tried to use the syntax from the documentation, but I always get error messages. Is there already an fsc-file for the impeller from the samples, where the model is exported automatically? Thank you very much for the help Clara Share this post Link to post Share on other sites
Mr. Mattia Brenner 6 Report post Posted May 17, 2023 Hi Clara, you are right. Unfortunately, the documentation hasn't been updated for the latest version. Now, you will find the (FSC) script export here: The command to export individual objects as STL is <objectName>.exportSTL(FString fileName), so, e.g., |05_export|flowDomain.exportSTL("impellerFlowDomain.stl") for the impeller sample file. Cheers, Mattia Share this post Link to post Share on other sites
CHenk 0 Report post Posted May 22, 2023 Hi Mattia, thank you very much, that was really helpful. I have carried out all the steps as I understood them in the documentation and exported the script. But when I start it with a .bat file, I always get such error messages: ------------------------------------------------------------------------- Es geht los ... CAESES 5.1.7 loading plugin libraries ... - ok - ok - ok - ok - ok - ok - ok - ok - ok - ok - ok - ok initializing types ... plugins - ok basic object types - ok entity types - ok initializing commands ... console cmdsQImage::scaleHeight: Image is a null image - ok initializing configuration ... *** INFO REPORTSERVER : started [port: 12346] *** INFO REPORTSERVER : started [port: 12346] false |> |00_hub|parameters|D.setValue(60) *** ERROR Command Control : failure [invalid expression "|00_hub|parameters|D.setValue(60)": Could not resolve Scope |00_hub|parameters|D] |> |00_hub|parameters|TANGENT_INLET.setValue(0) *** ERROR Command Control : failure [invalid expression "|00_hub|parameters|TANGENT_INLET.setValue(0)": Could not resolve Scope |00_hub|parameters|TANGENT_INLET] |> |00_hub|parameters|TANGENT_OUTLET.setValue(90) *** ERROR Command Control : failure [invalid expression "|00_hub|parameters|TANGENT_OUTLET.setValue(90)": Could not resolve Scope |00_hub|parameters|TANGENT_OUTLET] |> |01_shroud|parameters|TANGENT_INLET.setValue(0) *** ERROR Command Control : failure [invalid expression "|01_shroud|parameters|TANGENT_INLET.setValue(0)": Could not resolve Scope |01_shroud|parameters|TANGENT_INLET] |> |01_shroud|parameters|TANGENT_OUTLET.setValue(80) *** ERROR Command Control : failure [invalid expression "|01_shroud|parameters|TANGENT_OUTLET.setValue(80)": Could not resolve Scope |01_shroud|parameters|TANGENT_OUTLET] |> |02_blade_main|parameters|camber|DELTA_THETA_SHROUD_LE.setValue(10) *** ERROR Command Control : failure [invalid expression "|02_blade_main|parameters|camber|DELTA_THETA_SHROUD_LE.setValue(10)": Could not resolve Scope |02_blade_main|parameters|camber|DELTA_THETA_SHROUD_LE] |> |02_blade_main|parameters|camber|DELTA_THETA_SHROUD_TE.setValue(5) *** ERROR Command Control : failure [invalid expression "|02_blade_main|parameters|camber|DELTA_THETA_SHROUD_TE.setValue(5)": Could not resolve Scope |02_blade_main|parameters|camber|DELTA_THETA_SHROUD_TE] |> |02_blade_main|parameters|camber|THETA_HUB_LE.setValue(47) *** ERROR Command Control : failure [invalid expression "|02_blade_main|parameters|camber|THETA_HUB_LE.setValue(47)": Could not resolve Scope |02_blade_main|parameters|camber|THETA_HUB_LE] |> |02_blade_main|parameters|camber|THETA_HUB_LE_ANGLE.setValue(-31) *** ERROR Command Control : failure [invalid expression "|02_blade_main|parameters|camber|THETA_HUB_LE_ANGLE.setValue(-31)": Could not resolve Scope |02_blade_main|parameters|camber|THETA_HUB_LE_ANGLE] |> |02_blade_main|parameters|camber|THETA_HUB_TE.setValue(4) *** ERROR Command Control : failure [invalid expression "|02_blade_main|parameters|camber|THETA_HUB_TE.setValue(4)": Could not resolve Scope |02_blade_main|parameters|camber|THETA_HUB_TE] |> |02_blade_main|parameters|camber|THETA_HUB_TE_ANGLE.setValue(22) *** ERROR Command Control : failure [invalid expression "|02_blade_main|parameters|camber|THETA_HUB_TE_ANGLE.setValue(22)": Could not resolve Scope |02_blade_main|parameters|camber|THETA_HUB_TE_ANGLE] |> |02_blade_main|parameters|camber|THETA_SHROUD_LE_ANGLE.setValue(-50) *** ERROR Command Control : failure [invalid expression "|02_blade_main|parameters|camber|THETA_SHROUD_LE_ANGLE.setValue(-50)": Could not resolve Scope |02_blade_main|parameters|camber|THETA_SHROUD_LE_ANGLE] |> |02_blade_main|parameters|camber|THETA_SHROUD_TE_ANGLE.setValue(18.8) *** ERROR Command Control : failure [invalid expression "|02_blade_main|parameters|camber|THETA_SHROUD_TE_ANGLE.setValue(18.8)": Could not resolve Scope |02_blade_main|parameters|camber|THETA_SHROUD_TE_ANGLE] |> |02_blade_main|parameters|stacking|HUB_DELTA_ANGLE.setValue(10) *** ERROR Command Control : failure [invalid expression "|02_blade_main|parameters|stacking|HUB_DELTA_ANGLE.setValue(10)": Could not resolve Scope |02_blade_main|parameters|stacking|HUB_DELTA_ANGLE] |> |02_blade_main|parameters|stacking|LOCATION_HUB.setValue(0.05) *** ERROR Command Control : failure [invalid expression "|02_blade_main|parameters|stacking|LOCATION_HUB.setValue(0.05)": Could not resolve Scope |02_blade_main|parameters|stacking|LOCATION_HUB] |> |02_blade_main|parameters|stacking|LOCATION_SHROUD.setValue(0.1) *** ERROR Command Control : failure [invalid expression "|02_blade_main|parameters|stacking|LOCATION_SHROUD.setValue(0.1)": Could not resolve Scope |02_blade_main|parameters|stacking|LOCATION_SHROUD] |> |02_blade_main|parameters|stacking|SHROUD_DELTA_ANGLE.setValue(-20) *** ERROR Command Control : failure [invalid expression "|02_blade_main|parameters|stacking|SHROUD_DELTA_ANGLE.setValue(-20)": Could not resolve Scope |02_blade_main|parameters|stacking|SHROUD_DELTA_ANGLE] |> |02_blade_main|parameters|thickness|SHAPEFACTOR.setValue(2) *** ERROR Command Control : failure [invalid expression "|02_blade_main|parameters|thickness|SHAPEFACTOR.setValue(2)": Could not resolve Scope |02_blade_main|parameters|thickness|SHAPEFACTOR] |> |02_blade_main|parameters|thickness|T_LE_hub.setValue(0.851142) *** ERROR Command Control : failure [invalid expression "|02_blade_main|parameters|thickness|T_LE_hub.setValue(0.851142)": Could not resolve Scope |02_blade_main|parameters|thickness|T_LE_hub] |> |02_blade_main|parameters|thickness|T_LE_mid.setValue(0.394162) *** ERROR Command Control : failure [invalid expression "|02_blade_main|parameters|thickness|T_LE_mid.setValue(0.394162)": Could not resolve Scope |02_blade_main|parameters|thickness|T_LE_mid] |> |02_blade_main|parameters|thickness|T_LE_shroud.setValue(0.348311) *** ERROR Command Control : failure [invalid expression "|02_blade_main|parameters|thickness|T_LE_shroud.setValue(0.348311)": Could not resolve Scope |02_blade_main|parameters|thickness|T_LE_shroud] |> |02_blade_main|parameters|thickness|T_TE_hub.setValue(0.851142) *** ERROR Command Control : failure [invalid expression "|02_blade_main|parameters|thickness|T_TE_hub.setValue(0.851142)": Could not resolve Scope |02_blade_main|parameters|thickness|T_TE_hub] |> |02_blade_main|parameters|thickness|T_TE_mid.setValue(0.394162) *** ERROR Command Control : failure [invalid expression "|02_blade_main|parameters|thickness|T_TE_mid.setValue(0.394162)": Could not resolve Scope |02_blade_main|parameters|thickness|T_TE_mid] |> |02_blade_main|parameters|thickness|T_TE_shroud.setValue(0.348311) *** ERROR Command Control : failure [invalid expression "|02_blade_main|parameters|thickness|T_TE_shroud.setValue(0.348311)": Could not resolve Scope |02_blade_main|parameters|thickness|T_TE_shroud] |> |03_blade_splitter|parameters|CHANNEL_POSITION.setValue(0.5) *** ERROR Command Control : failure [invalid expression "|03_blade_splitter|parameters|CHANNEL_POSITION.setValue(0.5)": Could not resolve Scope |03_blade_splitter|parameters|CHANNEL_POSITION] |> |03_blade_splitter|parameters|SHIFT_LE_SHROUD.setValue(0) *** ERROR Command Control : failure [invalid expression "|03_blade_splitter|parameters|SHIFT_LE_SHROUD.setValue(0)": Could not resolve Scope |03_blade_splitter|parameters|SHIFT_LE_SHROUD] |> |03_blade_splitter|parameters|stacking|HUB_DELTA_ANGLE.setValue(10) *** ERROR Command Control : failure [invalid expression "|03_blade_splitter|parameters|stacking|HUB_DELTA_ANGLE.setValue(10)": Could not resolve Scope |03_blade_splitter|parameters|stacking|HUB_DELTA_ANGLE] |> |03_blade_splitter|parameters|stacking|LOCATION_HUB.setValue(0.35) *** ERROR Command Control : failure [invalid expression "|03_blade_splitter|parameters|stacking|LOCATION_HUB.setValue(0.35)": Could not resolve Scope |03_blade_splitter|parameters|stacking|LOCATION_HUB] |> |03_blade_splitter|parameters|stacking|LOCATION_SHROUD_DELTA.setValue(0.05) *** ERROR Command Control : failure [invalid expression "|03_blade_splitter|parameters|stacking|LOCATION_SHROUD_DELTA.setValue(0.05)": Could not resolve Scope |03_blade_splitter|parameters|stacking|LOCATION_SHROUD_DELTA] |> |03_blade_splitter|parameters|stacking|SHROUD_DELTA_ANGLE.setValue(10) *** ERROR Command Control : failure [invalid expression "|03_blade_splitter|parameters|stacking|SHROUD_DELTA_ANGLE.setValue(10)": Could not resolve Scope |03_blade_splitter|parameters|stacking|SHROUD_DELTA_ANGLE] |> |03_blade_splitter|parameters|thickness|T_LE_hub.setValue(0.851142) *** ERROR Command Control : failure [invalid expression "|03_blade_splitter|parameters|thickness|T_LE_hub.setValue(0.851142)": Could not resolve Scope |03_blade_splitter|parameters|thickness|T_LE_hub] |> |03_blade_splitter|parameters|thickness|T_LE_mid.setValue(0.394162) *** ERROR Command Control : failure [invalid expression "|03_blade_splitter|parameters|thickness|T_LE_mid.setValue(0.394162)": Could not resolve Scope |03_blade_splitter|parameters|thickness|T_LE_mid] |> |03_blade_splitter|parameters|thickness|T_LE_shroud.setValue(0.348311) *** ERROR Command Control : failure [invalid expression "|03_blade_splitter|parameters|thickness|T_LE_shroud.setValue(0.348311)": Could not resolve Scope |03_blade_splitter|parameters|thickness|T_LE_shroud] |> |03_blade_splitter|parameters|thickness|T_TE_hub.setValue(0.851142) *** ERROR Command Control : failure [invalid expression "|03_blade_splitter|parameters|thickness|T_TE_hub.setValue(0.851142)": Could not resolve Scope |03_blade_splitter|parameters|thickness|T_TE_hub] |> |03_blade_splitter|parameters|thickness|T_TE_mid.setValue(0.394162) *** ERROR Command Control : failure [invalid expression "|03_blade_splitter|parameters|thickness|T_TE_mid.setValue(0.394162)": Could not resolve Scope |03_blade_splitter|parameters|thickness|T_TE_mid] |> |03_blade_splitter|parameters|thickness|T_TE_shroud.setValue(0.348311) *** ERROR Command Control : failure [invalid expression "|03_blade_splitter|parameters|thickness|T_TE_shroud.setValue(0.348311)": Could not resolve Scope |03_blade_splitter|parameters|thickness|T_TE_shroud] |> |00_hub|parameters|D_INLET.setValue(|00_hub|parameters|D * 0.17) *** ERROR Command Control : failure [invalid expression "|00_hub|parameters|D_INLET.setValue(|00_hub|parameters|D * 0.17)": Could not resolve Scope |00_hub|parameters|D_INLET] |> |00_hub|parameters|bottom|DELTA_Z_BOTTOM_MID.setValue(3) *** ERROR Command Control : failure [invalid expression "|00_hub|parameters|bottom|DELTA_Z_BOTTOM_MID.setValue(3)": Could not resolve Scope |00_hub|parameters|bottom|DELTA_Z_BOTTOM_MID] |> |00_hub|parameters|bottom|R_BOTTOM.setValue(|00_hub|parameters|D * 0.1) *** ERROR Command Control : failure [invalid expression "|00_hub|parameters|bottom|R_BOTTOM.setValue(|00_hub|parameters|D * 0.1)": Could not resolve Scope |00_hub|parameters|bottom|R_BOTTOM] |> |00_hub|parameters|bottom|THICKNESS_PLATE.setValue(|00_hub|parameters|D * 0.01) *** ERROR Command Control : failure [invalid expression "|00_hub|parameters|bottom|THICKNESS_PLATE.setValue(|00_hub|parameters|D * 0.01)": Could not resolve Scope |00_hub|parameters|bottom|THICKNESS_PLATE] |> |00_hub|parameters|bottom|Z_MAX.setValue(|00_hub|parameters|D * 0.5) *** ERROR Command Control : failure [invalid expression "|00_hub|parameters|bottom|Z_MAX.setValue(|00_hub|parameters|D * 0.5)": Could not resolve Scope |00_hub|parameters|bottom|Z_MAX] |> |00_hub|setup|theta_0.setValue(190) *** ERROR Command Control : failure [invalid expression "|00_hub|setup|theta_0.setValue(190)": Could not resolve Scope |00_hub|setup|theta_0] |> |01_shroud|parameters|D_INLET.setValue(|00_hub|parameters|D * 0.5) *** ERROR Command Control : failure [invalid expression "|01_shroud|parameters|D_INLET.setValue(|00_hub|parameters|D * 0.5)": Could not resolve Scope |01_shroud|parameters|D_INLET] |> |01_shroud|parameters|Z_BOTTOM.setValue(|00_hub|parameters|bottom|Z_MAX * 0.83) *** ERROR Command Control : failure [invalid expression "|01_shroud|parameters|Z_BOTTOM.setValue(|00_hub|parameters|bottom|Z_MAX * 0.83)": Could not resolve Scope |01_shroud|parameters|Z_BOTTOM] |> |02_blade_main|parameters|camber|THETA_GLOBAL.setValue(0) *** ERROR Command Control : failure [invalid expression "|02_blade_main|parameters|camber|THETA_GLOBAL.setValue(0)": Could not resolve Scope |02_blade_main|parameters|camber|THETA_GLOBAL] |> |02_blade_main|setup|01_stacking|hub|tc.setValue(|02_blade_main|parameters|stacking|LOCATION_HUB) *** ERROR Command Control : failure [invalid expression "|02_blade_main|setup|01_stacking|hub|tc.setValue(|02_blade_main|parameters|stacking|LOCATION_HUB)": Could not resolve Scope |02_blade_main|setup|01_stacking|hub|tc] |> |02_blade_main|setup|01_stacking|shroud|tc.setValue(|02_blade_main|parameters|stacking|LOCATION_SHROUD) *** ERROR Command Control : failure [invalid expression "|02_blade_main|setup|01_stacking|shroud|tc.setValue(|02_blade_main|parameters|stacking|LOCATION_SHROUD)": Could not resolve Scope |02_blade_main|setup|01_stacking|shroud|tc] |> |02_blade_main|setup|02_camber|angle_distributions|theta_shroud|theta_shroud_LE.setValue(|02_blade_main|parameters|camber|THETA_HUB_LE + |02_blade_main|parameters|camber|DELTA_THETA_SHROUD_LE) *** ERROR Command Control : failure [invalid expression "|02_blade_main|setup|02_camber|angle_distributions|theta_shroud|theta_shroud_LE.setValue(|02_blade_main|parameters|camber|THETA_HUB_LE + |02_blade_main|parameters|camber|DELTA_THETA_SHROUD_LE)": Could not resolve Scope |02_blade_main|setup|02_camber|angle_distributions|theta_shroud|theta_shroud_LE] |> |02_blade_main|setup|02_camber|angle_distributions|theta_shroud|theta_shroud_TE.setValue(|02_blade_main|parameters|camber|THETA_HUB_TE + |02_blade_main|parameters|camber|DELTA_THETA_SHROUD_TE) *** ERROR Command Control : failure [invalid expression "|02_blade_main|setup|02_camber|angle_distributions|theta_shroud|theta_shroud_TE.setValue(|02_blade_main|parameters|camber|THETA_HUB_TE + |02_blade_main|parameters|camber|DELTA_THETA_SHROUD_TE)": Could not resolve Scope |02_blade_main|setup|02_camber|angle_distributions|theta_shroud|theta_shroud_TE] |> |02_blade_main|setup|04_visualization|profile|pos.setValue(0) *** ERROR Command Control : failure [invalid expression "|02_blade_main|setup|04_visualization|profile|pos.setValue(0)": Could not resolve Scope |02_blade_main|setup|04_visualization|profile|pos] |> |02_blade_main|setup|04_visualization|profile|pos01.setValue(0.25) *** ERROR Command Control : failure [invalid expression "|02_blade_main|setup|04_visualization|profile|pos01.setValue(0.25)": Could not resolve Scope |02_blade_main|setup|04_visualization|profile|pos01] |> |02_blade_main|setup|04_visualization|profile|pos02.setValue(0.5) *** ERROR Command Control : failure [invalid expression "|02_blade_main|setup|04_visualization|profile|pos02.setValue(0.5)": Could not resolve Scope |02_blade_main|setup|04_visualization|profile|pos02] |> |02_blade_main|setup|04_visualization|profile|pos03.setValue(0.75) *** ERROR Command Control : failure [invalid expression "|02_blade_main|setup|04_visualization|profile|pos03.setValue(0.75)": Could not resolve Scope |02_blade_main|setup|04_visualization|profile|pos03] |> |02_blade_main|setup|04_visualization|profile|pos04.setValue(1) *** ERROR Command Control : failure [invalid expression "|02_blade_main|setup|04_visualization|profile|pos04.setValue(1)": Could not resolve Scope |02_blade_main|setup|04_visualization|profile|pos04] |> |03_blade_splitter|setup|01_stacking|shroud|tc.setValue(|03_blade_splitter|parameters|stacking|LOCATION_HUB + |03_blade_splitter|parameters|stacking|LOCATION_SHROUD_DELTA) *** ERROR Command Control : failure [invalid expression "|03_blade_splitter|setup|01_stacking|shroud|tc.setValue(|03_blade_splitter|parameters|stacking|LOCATION_HUB + |03_blade_splitter|parameters|stacking|LOCATION_SHROUD_DELTA)": Could not resolve Scope |03_blade_splitter|setup|01_stacking|shroud|tc] |> |05_export|FILLETRADIUS.setValue(0.5) *** ERROR Command Control : failure [invalid expression "|05_export|FILLETRADIUS.setValue(0.5)": Could not resolve Scope |05_export|FILLETRADIUS] |> |05_export|NOB.setValue(11) *** ERROR Command Control : failure [invalid expression "|05_export|NOB.setValue(11)": Could not resolve Scope |05_export|NOB] |> |05_export|flowDomain.exportSTL("impellerFlowDomain.stl") *** ERROR Command Control : failure [invalid expression "|05_export|flowDomain.exportSTL("impellerFlowDomain.stl")": Could not resolve Scope |05_export|flowDomain] ------------------------------------------------------------------------- Do i have to change anything else on the model to be able to do this? or is the problem in the configuration files? Cheers, Clara turbocharger.fsc turbocharger.cdb run_CAESES.bat Share this post Link to post Share on other sites
CHenk 0 Report post Posted May 23, 2023 Problem is solved. Thank you very much for the help, especially in creating the fsc-file. 🙂 Share this post Link to post Share on other sites