41 lines
1.3 KiB
C#
41 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 CaeGlobals;
|
|
|
|
namespace CPSO.Commands
|
|
{
|
|
[Serializable]
|
|
class CPropagateBC : PreprocessCommand
|
|
{
|
|
// Variables
|
|
private string _stepName;
|
|
private string _boundaryConditionName;
|
|
|
|
|
|
// Constructor
|
|
public CPropagateBC(string stepName, string boundaryConditionName)
|
|
: base("Propagate BC")
|
|
{
|
|
_stepName = stepName;
|
|
_boundaryConditionName = boundaryConditionName;
|
|
}
|
|
|
|
|
|
// Methods
|
|
public override bool Execute(Controller receiver)
|
|
{
|
|
receiver.PropagateBoundaryCondition(_stepName, _boundaryConditionName);
|
|
return true;
|
|
}
|
|
public override string GetCommandString()
|
|
{
|
|
return base.GetCommandString() + _stepName + ": " + _boundaryConditionName;
|
|
}
|
|
}
|
|
}
|