546day(cross-domain.html)

本文通过一个具体的示例展示了如何尝试从一个网页发起跨域AJAX请求,并解释了同源策略的概念及其对请求的影响。

《2019年4月3日》【连续 546天】

标题:cross-domain.html;
内容:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>尝试对一个不同源地址发起一个AJAX请求(失败了)</title>
</head>
<body>
  <script src="jquery.js"></script>
  <script>

    // 当前页面访问地址:http://day-12.io/11-cross-domain.html
    // 希望被AJAX的地址:http://locally.uieee.com/categories
    // 这两个地址之间 协议相同 端口相同 域名不同 所以是两个不同源的地址
    // 同源策略指的就是:不同源地址之间,默认不能相互发送AJAX请求

    // 不同源地址之间如果需要相互请求,必须服务端和客户端配合才能完成

    $.get('http://locally.uieee.com/categories', function (res) {
      console.log(res)
    })

  </script>
</body>
</html>

 

! Doble et al. (2011) - River Bank Slope and Unsaturated Flow Effects on Bank Storage ! HydroGeoSphere Model Setup for Generic Simulation (Vertical Bank Case) ! ---------------------------------------------------------------- ! ----------------------- Domain Geometry ----------------------- generate uniform rectangles 250 500 ! Domain length (250m) and blocks in X (500 cells = 0.5m/cell near river) 1 1 ! Domain width and blocks in Y (2D cross-section) generate layers interactive zone by layer base elevation elevation constant 0.0 ! Aquifer base at z=0m end new layer layer name Aquifer uniform sublayering 20 ! 20 vertical layers (4m thick / 0.2m per layer) elevation constant 4.0 ! Top of aquifer at z=4m end new layer layer name Overland uniform sublayering 1 ! Single layer for overland flow elevation constant 4.0 ! Ground surface at z=4m (will be modified for sloping banks) end end ! ----------------------- Simulation Parameters ----------------------- finite difference mode transient flow dual nodes for surface flow units: metre-day ! Consistent with paper's units fluid viscosity 1.139e-6 ! Kinematic viscosity for water at 20°C (m²/day) ! ----------------------- Material Properties ----------------------- use domain type porous media properties file doble_2011.mprops clear chosen zones choose zone number 1 read properties sandy_loam ! Parameters from Table 2 ! van Genuchten parameters for sandy loam: ! θs=0.41, θr=0.158, K=1.06 m/d, α=7.5 m⁻¹, n=1.89 ! ----------------------- Overland Flow Setup ----------------------- use domain type surface properties file doble_2011.oprops clear chosen faces choose faces top new zone 1 clear chosen zones choose zone number 1 read properties overland_flow ! Overland flow parameters: ! Manning's n = 1e-5 m^{-1/3} (minimal resistance) ! Rill storage height = 0.00001 m ! Obstruction height = 0 m ! ----------------------- Initial Conditions ----------------------- use domain type porous media clear chosen nodes choose nodes all initial pressure head -2.0 ! Initial water table at 2m depth (saturated thickness=2m) ! ----------------------- Boundary Conditions ----------------------- ! River flood pulse boundary (Specified head) clear chosen faces choose faces x-min ! River interface at x=0 specified head 2, ! Time-head pairs 0.0, 2.0, ! Initial stage (t=0): 2.0m 5.0, 3.0 ! Peak stage (t=5d): 3.0m (1m rise) ! Additional time points as needed ! Right boundary (constant head) clear chosen faces choose faces x-max specified head 2.0 ! Constant head = 2.0m ! Bottom boundary (no flow) clear chosen faces choose faces bottom no flow ! ----------------------- Temporal Controls ----------------------- head control 0.01 ! 1cm head change tolerance saturation control 0.05 ! 5% saturation change tolerance maximum timestep 0.1 ! Max 0.1 days (as in paper) initial timestep 0.001 ! Initial small timestep maximum timestep multiplier 2.0 minimum timestep multiplier 0.5 output times 0.1, 0.5, 1.0, 2.0, 5.0, 10.0, 20.0, 50.0 ! Key analysis times ! ----------------------- Solver Settings ----------------------- Newton maximum iterations 15 Jacobian epsilon 1.0e-9 Newton absolute convergence criteria 1e-4 Newton residual convergence criteria 1e-6 ! ----------------------- Bank Slope Configuration ----------------------- ! Note: For sloping banks (e.g., 8.), modify geometry in 'generate layers' section ! by adjusting elevation values to create inclined surface ! Example for 8.5° slope (1:6.67 gradient): ! elevation linear ! 0.0, 4.0, ! x=0m, z=4m ! 250.0, 4.0 + 250/6.67 ≈ 41.5m ! x=250m, z=45.5m ! ----------------------- Observation Points ----------------------- observation points ! Define points for flux monitoring (river-aquifer interface) 0.0, 0.5, 2.0 ! Example point at river bank ! ----------------------- End of Input File -----------------------Hydrogeosphere中grok运行器这段指令输入进去报错************************************** *** INPUT ERROR, HALTING EXECUTION *** ************************************** GRID GENERATION: Unrecognized instruction应该怎么调整
07-02
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值