Git Product home page Git Product logo

macroutils's Introduction

MacroUtils

MacroUtils is a collection of high-level APIs in order to make your life easier when writing Simcenter STAR-CCM+ JAVA macros.

Requires

  1. Simcenter STAR-CCM+ 2406 libraries;

  2. Integrated development environment (IDE) supporting JDK 21.0.1 and gradle

Recommended IDE

NetBeans 19 or later.

Need an older version?

Source: navigate through git tags to checkout older code;

Binaries: have a look in the Releases section to find out all the builds compiled over time.

macroutils's People

Contributors

frkasper avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

macroutils's Issues

STAR CCM+ Zero Gap simulation

Dear Fabio Kasper,

i am working on my thesis right now and working on a simulation of a dynamic valve. I found your video on youtube:
https://www.youtube.com/watch?v=RYKolUSipLQ&pbjreload=101 which is dealing with the zerogap mechanism. I would
like to ask if it is possible to:

  1. Maybe get the .sim file of this model? It would be a big help for me in my work!
  2. If its not possible, I would like to know if there is a way to contact you for short exchange about Zero Gap simulation stuff?

I would be very happy to hear from you!
Best regards, Eugen

Compilation Error

The following error message appears when trying to build the jar file using Netbeans 8.1:

A:\StarMacros\nbproject\build-impl.xml:916: The following error occurred while executing this line:
A:\StarMacros\nbproject\build-impl.xml:266: Error running C:\JAVA\jdk1.7.0_51\bin\javac.exe compiler
BUILD FAILED (total time: 6 seconds)

This build is successful using Netbeans 8.0.2. Is there a reason for this? If Netbeans 8.0.2 is necessary for proper building, then the FAQ portion of the wiki should be updated accordingly. Thanks.

Update Demo16

Pout field function has a hardcoded frequency.

Replace by Parameter so it can be updated dynamically.

Writing files with '.' in the simTitle

I require writing my sim files and pictures with a name containing doubles (for example, ud.simTitle = height_6.19_inches). The problem I have is that several of the methods in Write.java call the method 'fileBasename()' which is defined in 'GetStrings.java'. This splits the file name by the '.' and cuts out the second half. From my example above, if I used mu.io.write.picture(sceneName, ud.simTitle, 1300, 800, vo) to write a picture, it writes out 'height_6.png' and cuts out the '.19_inches' from my simTitle.

I have been working around this by commenting out
else {
name = _get.strings.fileBasename(name);
}
in lines 52-54 of Write.java.

Would you consider providing a fix for this in the source code so that with each new version of starccm+ I can simply use your pre-compiled MacroUtils.jar?

Thanks!

parentName() is giving a wrong output.

E.g.: Displayers is resolving to Diplayer

    public String parentName(ClientServerObject cso) {
        if (cso == null) {
            return "NULL";
        }
        String name = cso.getParent().getBeanDisplayName();
        String[] split = name.split(" ");
        String lastWord = split[split.length - 1];
        if (lastWord.endsWith("ies")) {
            lastWord = lastWord.replace("ies", "y");
        } else if (lastWord.endsWith("s")) {
            lastWord = lastWord.replace("s", "");
        }
        return name.replace(split[split.length - 1], lastWord);
    }

Need refactoring.

Create streamline scene

The "streamline" method found in CreateScene.java doesn't successfully create the transparent geometry part displayer (the streamline displayer is created successfully). It appears that the method at fault is "_createDisplayer_Part", specifically the line "pd.addParts(ano);" seems to only work on part surfaces, not parts or regions themselves.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.