Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
Article information
RevisionsShow article in Markdown
Report article
Help us understand the problem. What is going on with this article?

This post is Private. Only a writer or those who know its URL can access this post.

@daikumatan

[STAR-CCM+ on Rescale] STEP3: テンプレート

More than 3 years have passed since last update.

1. テンプレートのアップロード

1.1 "parameterStudy.java.tmp" のアップロード

Kobito.trlLZt.png

1.2 "parameterStudy.java.tmp" の内容確認

parameterStudy.java.tmp
// STAR-CCM+ macro: parameterStudy.java
// Written by STAR-CCM+ 11.06.010
package macro;

import java.util.*;

import star.cadmodeler.*;
import star.common.*;
import star.base.neo.*;
import star.motion.*;
import star.meshing.*;

public class parameterStudy extends StarMacro {

  public void execute() {
    execute0();
  }

  private void execute0() {

    Simulation simulation_0 = 
      getActiveSimulation();

    CadModel cadModel_0 = 
      ((CadModel) simulation_0.get(SolidModelManager.class).getObject("3D-CAD Model 1"));

    UserDesignParameter userDesignParameter_0 = 
      ((UserDesignParameter) cadModel_0.getDesignParameterManager().getObject("Angle"));

    userDesignParameter_0.getQuantity().setValue(${MY_ANGLE?string("0.0")});

    ScalarQuantityDesignParameter scalarQuantityDesignParameter_0 = 
      ((ScalarQuantityDesignParameter) cadModel_0.getDesignParameterManager().getObject("Radius"));

    scalarQuantityDesignParameter_0.getQuantity().setValue(${MY_RADIUS?string("0.000")});

    cadModel_0.update();

    SolidModelPart solidModelPart_0 = 
      ((SolidModelPart) simulation_0.get(SimulationPartManager.class).getPart("in"));

    simulation_0.get(SimulationPartManager.class).updateParts(new NeoObjectVector(new Object[] {solidModelPart_0}));

    AutoMeshOperation autoMeshOperation_0 = 
      ((AutoMeshOperation) simulation_0.get(MeshOperationManager.class).getObject("\u30AA\u30FC\u30C8\u30E1\u30C3\u30B7\u30E5"));

    autoMeshOperation_0.execute();

    UserRotatingReferenceFrame userRotatingReferenceFrame_0 = 
      ((UserRotatingReferenceFrame) simulation_0.get(ReferenceFrameManager.class).getObject("RotMRF"));

    userRotatingReferenceFrame_0.getRotationRate().setValue(${MY_ROTATION?string("0000.0")});

    simulation_0.getSimulationIterator().run();
  }
}

2. ファイル名の決定

テンプレートから計算時に作成される "ファイル名" を決定します。以下のように入力してください

ファイル名
./parameterStudy.java

Kobito.469ce9.png

完了: 次のステップへ

一度トップ画面に戻って次へ進んでください。

Article information
RevisionsShow article in Markdown
Report article
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
daikumatan
2002-2015: Fujixerox, Numerical simulation Engineer 2015-2016: NVIDIA Japan, BD Manager 2016-2020: Rescale Japan, Evangelist 2020-Present: XTREME-D, CTO

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
Article information
RevisionsShow article in Markdown
Report article
Help us understand the problem. What is going on with this article?