|
@@ -126,17 +126,28 @@ public class AFT001Service extends AFT001BaseModel implements ExecProcessFlow {
|
|
|
}else if(action.equals("TransformToIsometric")){//等距视图显示
|
|
|
|
|
|
}else if(action.equals("ResultImport")){
|
|
|
- if(this.getA_aft001().getIsVolume()=="1"){
|
|
|
- JSONObject obj = new JSONObject();
|
|
|
- obj.put("filePath","/cephfs/Postprocess_Binary");
|
|
|
- obj.put("fileType","binary");
|
|
|
- obj.put("fileName","whole_part1.plt,whole_part2.plt,whole_part3.plt");
|
|
|
- msg.setParamJson(obj.toString());
|
|
|
- }else{
|
|
|
- JSONObject obj = new JSONObject();
|
|
|
- obj.put("filePath","/cephfs/Postprocess_Binary");
|
|
|
- obj.put("fileType","binary");
|
|
|
- obj.put("fileName","whole_part4.plt,whole_part5.plt,whole_part6.plt");
|
|
|
+ if(solver.getSolverModel().equals("HCFDLab")) {
|
|
|
+ if (this.getA_aft001().getIsVolume() == "1") {
|
|
|
+ JSONObject obj = new JSONObject();
|
|
|
+ obj.put("filePath", "/cephfs/Postprocess_Binary");
|
|
|
+ obj.put("fileType", "binary");
|
|
|
+ obj.put("fileName", "whole_part1.plt,whole_part2.plt,whole_part3.plt");
|
|
|
+ msg.setParamJson(obj.toString());
|
|
|
+ } else {
|
|
|
+ JSONObject obj = new JSONObject();
|
|
|
+ obj.put("filePath", "/cephfs/Postprocess_Binary");
|
|
|
+ obj.put("fileType", "binary");
|
|
|
+ obj.put("fileName", "whole_part4.plt,whole_part5.plt,whole_part6.plt");
|
|
|
+ msg.setParamJson(obj.toString());
|
|
|
+ }
|
|
|
+ }else if(solver.getSolverModel().equals("FEMLab(结构力学)")){
|
|
|
+ String jobPath = XIFileUtils.getRootPathStr()+ MFConstant.separator+solver.getPid();
|
|
|
+ String exePath = jobPath+ MFConstant.separator+"fem";
|
|
|
+ String exeOutPath = exePath+ MFConstant.separator+"data_out";
|
|
|
+ JSONObject obj = new JSONObject();
|
|
|
+ obj.put("filePath", exeOutPath);
|
|
|
+ obj.put("fileType", "acsiss");
|
|
|
+ obj.put("fileName", "dynamicResponse-transient.vtk");
|
|
|
msg.setParamJson(obj.toString());
|
|
|
}
|
|
|
}else if(action.equals("ContourDisplay")){
|