|
@@ -165,14 +165,14 @@ public class AFT001Service extends AFT001BaseModel implements ExecProcessFlow {
|
|
String jobPath = XIFileUtils.getRootPathStr()+ MFConstant.separator+solver.getPid();
|
|
String jobPath = XIFileUtils.getRootPathStr()+ MFConstant.separator+solver.getPid();
|
|
String exePath = jobPath+ MFConstant.separator+"fem";
|
|
String exePath = jobPath+ MFConstant.separator+"fem";
|
|
String exeOutPath = exePath+ MFConstant.separator+"data_out";
|
|
String exeOutPath = exePath+ MFConstant.separator+"data_out";
|
|
- File file = new File(exeOutPath+MFConstant.separator+"dynamicResponse-transient1.vtk");
|
|
|
|
|
|
+ File file = new File(exeOutPath+MFConstant.separator+"dynamicResponse-transient"+step+".vtk");
|
|
if(!file.exists()){
|
|
if(!file.exists()){
|
|
throw new BusinessException("EB4000017");
|
|
throw new BusinessException("EB4000017");
|
|
}
|
|
}
|
|
JSONObject obj = new JSONObject();
|
|
JSONObject obj = new JSONObject();
|
|
obj.put("filePath", exeOutPath);
|
|
obj.put("filePath", exeOutPath);
|
|
obj.put("fileType", "ascii");
|
|
obj.put("fileType", "ascii");
|
|
- obj.put("fileName", "dynamicResponse-transient1.vtk");
|
|
|
|
|
|
+ obj.put("fileName", "dynamicResponse-transient"+step+".vtk");
|
|
msg.setParamJson(obj.toString());
|
|
msg.setParamJson(obj.toString());
|
|
}
|
|
}
|
|
}else if(action.equals("ContourDisplay")){
|
|
}else if(action.equals("ContourDisplay")){
|
|
@@ -308,6 +308,7 @@ public class AFT001Service extends AFT001BaseModel implements ExecProcessFlow {
|
|
}
|
|
}
|
|
|
|
|
|
}else if(action.equals("animation")){
|
|
}else if(action.equals("animation")){
|
|
|
|
+ delOldImg(solverConfigId, proId, action);
|
|
JSONObject obj = new JSONObject();
|
|
JSONObject obj = new JSONObject();
|
|
String hideZones =this.getA_aft001().getHideZones();
|
|
String hideZones =this.getA_aft001().getHideZones();
|
|
obj.put("hideZones",hideZones);
|
|
obj.put("hideZones",hideZones);
|
|
@@ -322,6 +323,17 @@ public class AFT001Service extends AFT001BaseModel implements ExecProcessFlow {
|
|
MFMqUtils.get(CaeMQ.class).sendCaein(XiJsonUtil.objectToJson(msg));
|
|
MFMqUtils.get(CaeMQ.class).sendCaein(XiJsonUtil.objectToJson(msg));
|
|
|
|
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ private void delOldImg(String solverConfigId, String proId, String action) {
|
|
|
|
+ AdiSolverConfigImgMapper configImgMapper= UtilTools.getBean(AdiSolverConfigImgMapper.class);
|
|
|
|
+ AdiSolverConfigImg img = new AdiSolverConfigImg();
|
|
|
|
+ img.setAnimationtype(getA_aft001().getAnimationType());
|
|
|
|
+ img.setAction(action);
|
|
|
|
+ img.setPid(proId);
|
|
|
|
+ img.setSolverConfigId(solverConfigId);
|
|
|
|
+ configImgMapper.delete(img);
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* FEM 动画文件获取
|
|
* FEM 动画文件获取
|
|
* @param proId
|
|
* @param proId
|