Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

This article is a Private article. Only a writer and users who know the URL can access it.
Please change open range to public in publish setting if you want to share this article with other users.

More than 5 years have passed since last update.

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

Last updated at Posted at 2017-01-26
  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();
  }
}
  1. ファイル名の決定
    ==============================================

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

ファイル名
./parameterStudy.java

Kobito.469ce9.png

完了: 次のステップへ

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

0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?