Files
wg_cpso/CPSO/Commands/0050_Model/02_Tools/CCreateBoundaryLayer.cs
2026-03-25 18:20:24 +08:00

44 lines
1.3 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CPSO;
using CaeModel;
using CaeMesh;
using CaeGlobals;
namespace CPSO.Commands
{
[Serializable]
class CCreateBoundaryLayer : PreprocessCommand
{
// Variables
private int[] _geometryIds;
private double _thickness;
// Constructor
public CCreateBoundaryLayer(int[] geometryIds, double thickness)
: base("Create boundary layer")
{
_geometryIds = geometryIds;
_thickness = thickness;
}
// Methods
public override bool Execute(Controller receiver)
{
receiver.CreateBoundaryLayer(_geometryIds, _thickness);
return true;
}
public override string GetCommandString()
{
return base.GetCommandString() + "Thickness: " + _thickness.ToString();
}
}
}