FEFLOW网格生成算法详解:Advancing Front与特性编辑

需积分: 50 25 下载量 15 浏览量 更新于2024-08-09 收藏 6.21MB PDF 举报
网格生成算法在FEFLOW 6的实现是其地下水和溶质迁移模拟系统中的关键步骤,遵循 MIL-STD-1760D 标准中的要求。FEFLOW支持两种主要类型的网格:三角形和四边形有限元网格,网格生成过程是一个迭代优化的过程,用户可以根据需要调整单元数量、属性和空间初步划分。 1. **网格生成算法**: - **Advancing Front** 是FEFLOW采用的一种简单且高效的三角网格生成算法。它不依赖于网格中的点或线,生成的有限单元结构规整,但可能牺牲对特定几何形状的精确适应性。 2. **网格生成过程**: - 用户通过专门的工具栏控制,输入大致的有限单元数目,然后可以调整每个多边形内的网格密度。在这个过程中,用户可能需要尝试不同的算法和技术,如局部加密,以适应复杂区域的细节。 3. **空间初步划分**: - 空间初步划分是将复杂的地理区域划分为简单形状的基础,它影响网格的质量。FEFLOW提供了编辑和转换地图特征为空间初步划分特征的功能,以帮助生成更符合实际地形的网格。 4. **有限单元编辑**: - 生成的网格可以通过编辑工具进行细化或简化,以满足模型精度需求。同时,FEFLOW还支持3D离散,这对于三维模型至关重要。 5. **模拟设置**: - 从问题设定(包括选择不同类型的问题和求解方法)到参数赋值(如常数值、时间序列、地图数据和查找表),FEFLOW提供了全面的参数管理和调整手段,确保模拟的准确性。 6. **模拟执行与结果分析**: - 模拟过程中,用户可以监控模型检查、结果输出,以及收敛性。此外,FEFLOW支持动画和视频输出,便于展示模拟结果和数据分析,如水量平衡、含量分析、流线和迹线等。 FEFLOW 6网格生成算法的关键在于它的灵活性、自动化和可定制性,用户可以根据具体应用场景和模型需求,通过一系列工具和技术,高效地生成和优化适合的有限元网格,从而实现准确的地下水和溶质迁移模拟。

SELECT PIS.SHOW_FLT_DETAIL AS SHOW_FLT_DETAIL -- new , PIS.SHOW_AWB_DETAIL AS SHOW_AWB_DETAIL -- new , PIS.DISPLAY_AIRLINE_CODE AS CARRIER_CODE , DECODE(PIS.REVERT_FLOW,'N',PIS.FLOW_TYPE,DECODE(PIS.FLOW_TYPE,'I','E','I')) AS FLOW_TYPE , PIS.SHIP_TO_LOCATION AS SHIP_TO_LOCATION , PIS.INVOICE_SEQUENCE AS INVOICE_SEQUENCE , PFT.FLIGHT_DATE AS FLIGHT_DATE , PFT.FLIGHT_CARRIER_CODE AS FLIGHT_CARRIER_CODE , PFT.FLIGHT_SERIAL_NUMBER AS FLIGHT_SERIAL_NUMBER , PFT.FLOW_TYPE AS AIRCRAFT_FLOW , FAST.AIRCRAFT_SERVICE_TYPE AS AIRCRAFT_SERVICE_TYPE , PPT.AWB_NUMBER AS AWB_NUMBER , PPT.WEIGHT AS WEIGHT , PPT.CARGO_HANDLING_OPERATOR AS CARGO_HANDLING_OPERATOR , PPT.SHIPMENT_PACKING_TYPE AS SHIPMENT_PACKING_TYPE , PPT.SHIPMENT_FLOW_TYPE AS SHIPMENT_FLOW_TYPE , PPT.SHIPMENT_BUILD_TYPE AS SHIPMENT_BUILD_TYPE , PPT.SHIPMENT_CARGO_TYPE AS SHIPMENT_CARGO_TYPE , PPT.REVENUE_TYPE AS REVENUE_TYPE , PFT.JV_FLIGHT_CARRIER_CODE AS JV_FLIGHT_CARRIER_CODE , PPT.PORT_TONNAGE_UID AS PORT_TONNAGE_UID , PPT.AWB_UID AS AWB_UID , PIS.INVOICE_SEPARATION_UID AS INVOICE_SEPARATION_UID , PFT.FLIGHT_TONNAGE_UID AS FLIGHT_TONNAGE_UID FROM PN_FLT_TONNAGES PFT , FZ_AIRLINES FA , PN_TONNAGE_FLT_PORTS PTFP , PN_PORT_TONNAGES PPT , FF_AIRCRAFT_SERVICE_TYPES FAST , SR_PN_INVOICE_SEPARATIONS PIS --new , SR_PN_INVOICE_SEP_DETAILS PISD--new , SR_PN_INV_SEP_PORT_TONNAGES PISPT --new WHERE PFT.FLIGHT_OPERATION_DATE >= trunc( CASE :rundate WHEN TO_DATE('01/01/1900', 'DD/MM/YYYY') THEN ADD_MONTHS(SYSDATE,-1) ELSE ADD_MONTHS(:rundate,-1) END, 'MON') AND PFT.FLIGHT_OPERATION_DATE < trunc( CASE :rundate WHEN TO_DATE('01/01/1900', 'DD/MM/YYYY') THEN TRUNC(SYSDATE) ELSE TRUNC(:rundate) END, 'MON') AND PFT.TYPE IN ('C', 'F') AND PFT.RECORD_TYPE = 'M' AND (PFT.TERMINAL_OPERATOR NOT IN ('X', 'A') OR (PFT.TERMINAL_OPERATOR <> 'X' AND FA.CARRIER_CODE IN (SELECT * FROM SPECIAL_HANDLING_AIRLINE) AND PPT.REVENUE_TYPE IN (SELECT * FROM SPECIAL_REVENUE_TYPE) AND PPT.SHIPMENT_FLOW_TYPE IN (SELECT * FROM SPECIAL_SHIPMENT_FLOW_TYPE) AND PFT.FLIGHT_OPERATION_DATE >= (select EFF_DATE from SPECIAL_HANDLING_EFF_DATE) )) AND PFT.DELETING_DATETIME IS NULL AND FA.AIRLINE_UID = PFT.AIRLINE_UID AND FA.DELETING_DATETIME IS NULL AND PTFP.FLIGHT_TONNAGE_UID = PFT.FLIGHT_TONNAGE_UID AND PTFP.RECORD_TYPE = 'M' AND PTFP.DELETING_DATETIME IS NULL AND PPT.TONNAGE_FLIGHT_PORT_UID (+)= PTFP.TONNAGE_FLIGHT_PORT_UID AND PPT.RECORD_TYPE (+)= 'M' AND PPT.DISCREPANCY_TYPE (+)= 'NONE' AND PPT.ADJUSTMENT_INC_FLAG (+)= 'Y' AND PPT.DELETING_DATETIME (+) IS NULL AND FAST.AIRCRAFT_SERVICE_TYPE_UID = PFT.AIRCRAFT_SERVICE_TYPE_UID AND FAST.DELETING_DATETIME IS NULL AND PIS.TEMPORAL_NAME = TO_CHAR((CASE :rundate --new WHEN TO_DATE('01/01/1900', 'DD/MM/YYYY') THEN TRUNC(SYSDATE) ELSE TRUNC(:rundate) END ), 'YYYYMM') || '00' AND PIS.INVOICE_SEPARATION_UID = PISD.INVOICE_SEPARATION_UID --new AND PISD.INVOICE_SEP_DETAIL_UID = PISPT.INVOICE_SEP_DETAIL_UID --new AND PISPT.PORT_TONNAGE_UID = PPT.PORT_TONNAGE_UID --new AND PIS.PRINT_SUPPORTING_DOC = 'Y';上面是oracle的写法,请转成spark SQL的写法。

2023-06-02 上传

帮我优化代码#include<iostream> #include<vector> #include<fstream> #include<algorithm> using namespace std; class air_information{//航空信息 public: string flight_num; string staring_station; string terminal;//终点站 string aircraft_model; string flight_date; int member_num;// 成员定额 int remain_ticketnum;//余票量 air_information(string num,string star,string ter,string air,string fli,int mem,int rem):flight_num(num),staring_station(star),terminal(ter),aircraft_model(air),flight_date(fli),member_num(mem),remain_ticketnum(rem) { ; } }; vector<air_information>p; void data_read() { ifstream ios; air_information a1; ios.open("D:\\程序语言练习\\航空管理信息.txt"); for(int i=1;i<4;i++) { ios>>a1.flight_num>>a1.staring_station>>a1.terminal>>a1.aircraft_model>>a1.flight_date>>a1.member_num>>a1.remain_ticketnum; p.push_back(a1) ; } } inquire_terminel()//按飞行终点查询函数 { vector<air_information>::iterator it; cout<<"请输入你要查询的飞行终点"; string terminal; cin>>terminal; for(vector<air_information>::iterator it=p.begin();it!=p.end();++it) { int f; for(int i=0;i<p.size();i++) { if(it=terminal) { cout<<"航班信息如下:"<<endl; cout<<flight_num<<' '<<staring_station<<' '<<terminal<<' '<<aircraft_model<<' '<<flight_date<<' '<<member_mum<<' '<<remain_ticketnum<<endl; return f=1; } else if { return f=0; } } if(f==0) { cout<<"没有查询到航班,请重新输入后重试!"; } } } main() { data_read() ; inquire_terminel(); return 0; }

2023-05-25 上传
2023-05-25 上传