乐于分享
好东西不私藏

使用OpenClaw(小龙虾)调用 STAR‑CCM+ 实现仿真项目自动化的技术

使用OpenClaw(小龙虾)调用 STAR‑CCM+ 实现仿真项目自动化的技术
要用OpenClaw调用STAR-CCM+实现仿真项目自动化,核心思路是:将STAR-CCM+的Java宏录制能力和命令行批处理功能封装成OpenClaw可调用的Skill,让智能体理解你的需求后自动完成网格划分、求解设置、批量计算和结果提取的全流程。
与大多数CAE软件不同,STAR-CCM+的核心自动化手段是Java宏(Java Macro)——它几乎可以录制和重放软件界面中的每一个操作,这是实现与OpenClaw深度集成的技术基础。
🔍 一、STAR-CCM+的三种自动化接口
在开始集成之前,你需要了解STAR-CCM+支持的自动化方式,以便选择最适合的集成路径:
方式 技术栈 核心能力 适用场景
Java宏(最强大) STAR-CCM+内置宏录制/回放,支持.java文件 录制任意GUI操作、自定义工作流、与Design Manager集成 复杂流程自动化、参数化研究、批处理作业
命令行批处理(最简洁) starccm+ -batch 命令 无头模式运行仿真、仅网格生成、仅求解器计算 集群提交、夜间批量作业、参数扫描
脚本语言(最灵活) STAR-CCM+内置脚本编辑器(.scm文件) 变量定义、数据操作、用户交互、文件读写 简单自动化任务、快速原型验证
关键洞察:Java宏是STAR-CCM+自动化的“灵魂”——你可以手动操作一次并录制宏,然后将宏文件中的参数替换为变量,实现完全自动化的参数化仿真。
🤖 二、OpenClaw + STAR-CCM+ 集成架构
结合OpenClaw在工业控制领域的最新实践和STAR-CCM+的Java宏能力,我为你设计了一套完整的技术架构:
```
┌─────────────────────────────────────────────────────────────┐
│                    OpenClaw 智能体层                        │
│  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐         │
│  │ 意图解析    │  │ 任务规划    │  │ Skill调度   │         │
│  │ (LLM)      │──│ (多步分解)  │──│ (工具调用)  │         │
│  └─────────────┘  └─────────────┘  └─────────────┘         │
└─────────────────────────────────────────────────────────────┘
                              │
                              ▼
┌─────────────────────────────────────────────────────────────┐
│              OpenClaw Skill 层(你需要封装)                │
│  ┌─────────────────────────────────────────────────────┐   │
│  │         starccm_automation 技能包                   │   │
│  │  • starccm_batch_run()      - 批量提交仿真          │   │
│  │  • starccm_mesh_only()      - 仅网格生成            │   │
│  │  • starccm_java_macro()     - 执行Java宏            │   │
│  │  • starccm_param_sweep()    - 参数扫描              │   │
│  │  • starccm_extract_results() - 结果提取             │   │
│  └─────────────────────────────────────────────────────┘   │
└─────────────────────────────────────────────────────────────┘
                              │
                              ▼
┌─────────────────────────────────────────────────────────────┐
│              STAR-CCM+ 执行层                               │
│  ┌─────────────────┐  ┌─────────────────┐                  │
│  │ starccm+ -batch │  │ Java宏 (.java)  │                  │
│  │ mesh/run/step   │  │ 录制/回放       │                  │
│  └─────────────────┘  └─────────────────┘                  │
│  ┌─────────────────┐  ┌─────────────────┐                  │
│  │ .sim 仿真文件   │  │ 批处理系统集成  │                  │
│  │ (HDF5格式)      │  │ PBS/Slurm等     │                  │
│  └─────────────────┘  └─────────────────┘                  │
└─────────────────────────────────────────────────────────────┘
```
🛠️ 三、核心技能封装详解
3.1 技能一:批量提交仿真(命令行批处理)
STAR-CCM+提供了-batch命令行选项,这是最简洁的自动化方式。根据Siemens官方社区的验证,该命令支持mesh、run、step三种子命令:
```python
# starccm_batch_skill.py
import subprocess
import os
def starccm_batch_run(sim_file, batch_command="run", np=8, 
                      license_server="1999@flexserver", machinefile=None):
    """
    批量提交STAR-CCM+仿真任务
    参数:
        sim_file: .sim仿真文件路径
        batch_command: 批处理命令 - mesh(仅网格)/run(仅求解)/step(步进)[citation:1]
        np: 并行进程数
        license_server: 许可证服务器地址
        machinefile: 集群机器文件路径(可选)
    """
    # 查找STAR-CCM+安装路径(根据实际版本调整)
    starccm_path = r"C:\Program Files\Siemens\STAR-CCM+2024.1\star\bin\starccm+"
    # 构建命令
    cmd = f'"{starccm_path}" -licpath {license_server} -batch {batch_command}'
    # 添加并行计算参数
    if machinefile and os.path.exists(machinefile):
        cmd += f' -machinefile {machinefile} -mpi openmpi -np {np}'
    else:
        cmd += f' -np {np}'
    cmd += f' "{sim_file}"'
    # 执行命令
    result = subprocess.run(cmd, shell=True, capture_output=True, text=True)
    if result.returncode == 0:
        return {
            "status": "success",
            "sim_file": sim_file,
            "batch_command": batch_command,
            "output": result.stdout
        }
    else:
        return {
            "status": "failed",
            "error": result.stderr
        }
```
使用示例:
· 仅生成网格:starccm_batch_run("model.sim", batch_command="mesh")
· 仅运行求解:starccm_batch_run("model.sim", batch_command="run")
· 集群提交:starccm_batch_run("model.sim", np=32, machinefile="hostfile.txt")
3.2 技能二:执行Java宏(复杂流程自动化)
Java宏是STAR-CCM+实现复杂自动化的核心工具。你可以录制宏,然后让OpenClaw调用它:
```python
def starccm_execute_macro(sim_file, macro_file, macro_args=None):
    """
    执行STAR-CCM+ Java宏
    参数:
        sim_file: .sim仿真文件路径
        macro_file: .java宏文件路径
        macro_args: 宏参数(可选,如角度值、材料属性等)
    """
    # 构建命令
    cmd = f'starccm+ -batch macro "{macro_file}"'
    # 如果宏需要参数,可以通过环境变量或命令行传递
    if macro_args:
        # 方法1:使用 -macro-args 传递参数
        args_str = " ".join([f"{k}={v}" for k, v in macro_args.items()])
        cmd += f' -macro-args "{args_str}"'
    cmd += f' "{sim_file}"'
    result = subprocess.run(cmd, shell=True, capture_output=True, text=True)
    return {
        "status": "success" if result.returncode == 0 else "failed",
        "macro": macro_file,
        "output": result.stdout
    }
```
宏的典型应用场景:
· 批量计算不同边界条件:如火车在不同角度横风下的阻力分析
· 自动设置电池热管理参数:批量设置电芯发热量和接触电阻
· 圆柱电芯的柱坐标创建:处理成百上千个电芯的重复设置
3.3 技能三:参数扫描(模板+占位符法)
结合Java宏的参数化能力,可以实现自动化的参数扫描:
```python
def starccm_param_sweep(template_sim, macro_template, param_name, param_values):
    """
    STAR-CCM+参数扫描
    原理:
    1. 读取Java宏模板文件,替换参数占位符
    2. 为每个参数值生成临时宏文件
    3. 依次提交仿真
    """
    import re
    import shutil
    results = []
    # 读取宏模板
    with open(macro_template, 'r') as f:
        macro_content = f.read()
    for i, value in enumerate(param_values):
        # 替换占位符(模板中使用 ${PARAM_NAME} 格式)
        modified_macro = re.sub(r'\$\{' + param_name + r'\}', str(value), macro_content)
        # 写入临时宏文件
        temp_macro = f"temp_macro_{param_name}_{value}.java"
        with open(temp_macro, 'w') as f:
            f.write(modified_macro)
        # 创建临时仿真文件副本(避免相互覆盖)
        temp_sim = f"temp_sim_{param_name}_{value}.sim"
        shutil.copy(template_sim, temp_sim)
        # 执行宏
        result = starccm_execute_macro(temp_sim, temp_macro)
        results.append({
            "param_value": value,
            "status": result["status"]
        })
        # 清理临时文件(可选)
        # os.remove(temp_macro)
        # os.remove(temp_sim)
    return {"sweep_results": results}
```
3.4 技能四:Design Manager集成(高级优化)
STAR-CCM+的Design Manager模块支持更高级的设计研究自动化,Java宏可以在四个关键节点插入自定义逻辑:
```python
def starccm_design_manager_study(study_file, macro_insert_point, custom_macro):
    """
    在Design Manager设计中插入自定义宏
    宏插入点可选[citation:3]:
        - "before_update": 更新模型前执行
        - "before_mesh": 网格化前执行
        - "before_run": 求解前执行
        - "before_results": 结果前执行
    """
    # Design Manager支持在批处理模式下运行
    cmd = f'starccm+ -batch run "{study_file}"'
    # 如果需要在特定阶段插入宏,可以通过配置设计研究时指定
    # 参考官方文档:在Design Manager中右键选择宏文件并设置插入点[citation:3]
    result = subprocess.run(cmd, shell=True, capture_output=True, text=True)
    return {
        "status": "success" if result.returncode == 0 else "failed",
        "study": study_file,
        "macro_insert_point": macro_insert_point
    }
```
3.5 技能五:结果提取(解析.sim文件)
STAR-CCM+的.sim文件基于HDF5格式,可以使用Python的h5py库读取:
```python
def starccm_extract_results(sim_file, monitor_names):
    """
    从STAR-CCM+的.sim文件中提取监控数据
    .sim文件是HDF5格式,可以使用h5py读取
    """
    import h5py
    import numpy as np
    results = {}
    try:
        with h5py.File(sim_file, 'r') as f:
            # 典型路径:/Simulation/Reports/Monitor
            # 具体路径取决于仿真设置
            for name in monitor_names:
                # 尝试查找监控数据
                # 示例路径格式:/Simulation/Reports/Monitor/{name}/Data
                monitor_path = f"/Simulation/Reports/Monitor/{name}/Data"
                if monitor_path in f:
                    data = f[monitor_path][:]
                    results[name] = data.tolist()
                else:
                    results[name] = f"Monitor '{name}' not found"
    except Exception as e:
        return {"status": "error", "message": str(e)}
    return {"status": "success", "results": results}
```
🏗️ 四、OpenClaw Skill完整封装
将上述能力整合为OpenClaw可调用的技能包:
```python
# starccm_skill.py
"""
STAR-CCM+计算流体动力学仿真自动化技能包
让OpenClaw能够调用STAR-CCM+完成流场、传热、多相流等仿真
"""
import subprocess
import os
import json
import re
import shutil
class STARCCMSkill:
    """STAR-CCM+仿真自动化技能"""
    def __init__(self, config):
        self.config = config
        self.name = "starccm_automation"
        self.description = "调用STAR-CCM+完成流体动力学仿真(流场、传热、多相流、参数扫描)"
        # STAR-CCM+安装路径配置(需用户根据实际安装位置设置)
        self.starccm_path = config.get("starccm_path", 
            r"C:\Program Files\Siemens\STAR-CCM+2024.1\star\bin\starccm+")
        self.license_server = config.get("license_server", "1999@flexserver")
    async def execute(self, context):
        """OpenClaw主入口"""
        user_message = context.get("userMessage", "")
        params = self._parse_intent(user_message)
        action = params.get("action", "batch_run")
        if action == "batch_run":
            return await self._batch_run(params)
        elif action == "mesh_only":
            return await self._mesh_only(params)
        elif action == "execute_macro":
            return await self._execute_macro(params)
        elif action == "param_sweep":
            return await self._param_sweep(params)
        elif action == "extract_results":
            return await self._extract_results(params)
        else:
            return await self._batch_run(params)
    async def _batch_run(self, params):
        """批量提交仿真"""
        sim_file = params.get("sim_file")
        np = params.get("np", 8)
        batch_cmd = params.get("batch_command", "run")
        if not sim_file or not os.path.exists(sim_file):
            return {"status": "error", "message": f"仿真文件不存在: {sim_file}"}
        cmd = f'"{self.starccm_path}" -licpath {self.license_server} -batch {batch_cmd} -np {np} "{sim_file}"'
        result = subprocess.run(cmd, shell=True, capture_output=True, text=True)
        return {
            "status": "success" if result.returncode == 0 else "failed",
            "sim_file": sim_file,
            "batch_command": batch_cmd,
            "output": result.stdout[:2000] if result.stdout else result.stderr
        }
    async def _mesh_only(self, params):
        """仅生成网格(无需完整求解)"""
        sim_file = params.get("sim_file")
        np = params.get("np", 8)
        # 使用 -batch mesh 命令[citation:1]
        return await self._batch_run({
            "sim_file": sim_file,
            "np": np,
            "batch_command": "mesh"
        })
    async def _execute_macro(self, params):
        """执行Java宏"""
        sim_file = params.get("sim_file")
        macro_file = params.get("macro_file")
        macro_args = params.get("macro_args", {})
        if not macro_file or not os.path.exists(macro_file):
            return {"status": "error", "message": f"宏文件不存在: {macro_file}"}
        # 构建带参数的宏执行命令
        cmd = f'"{self.starccm_path}" -batch macro "{macro_file}"'
        if macro_args:
            args_str = " ".join([f"{k}={v}" for k, v in macro_args.items()])
            cmd += f' -macro-args "{args_str}"'
        cmd += f' "{sim_file}"'
        result = subprocess.run(cmd, shell=True, capture_output=True, text=True)
        return {
            "status": "success" if result.returncode == 0 else "failed",
            "macro": macro_file,
            "output": result.stdout[:2000]
        }
    async def _param_sweep(self, params):
        """参数扫描"""
        template_sim = params.get("template_sim")
        macro_template = params.get("macro_template")
        param_name = params.get("param_name")
        param_values = params.get("param_values", [])
        if not macro_template or not os.path.exists(macro_template):
            return {"status": "error", "message": f"宏模板不存在: {macro_template}"}
        results = []
        with open(macro_template, 'r') as f:
            macro_content = f.read()
        for value in param_values:
            # 替换占位符
            modified_macro = re.sub(r'\$\{' + param_name + r'\}', str(value), macro_content)
            # 创建临时文件
            temp_macro = f"temp_macro_{param_name}_{value}.java"
            with open(temp_macro, 'w') as f:
                f.write(modified_macro)
            temp_sim = f"temp_sim_{param_name}_{value}.sim"
            shutil.copy(template_sim, temp_sim)
            # 执行宏
            run_result = await self._execute_macro({
                "sim_file": temp_sim,
                "macro_file": temp_macro
            })
            results.append({
                "param_value": value,
                "status": run_result["status"]
            })
        return {"status": "completed", "sweep_results": results}
    async def _extract_results(self, params):
        """提取仿真结果(需要h5py)"""
        sim_file = params.get("sim_file")
        monitor_names = params.get("monitor_names", [])
        try:
            import h5py
            with h5py.File(sim_file, 'r') as f:
                extracted = {}
                for name in monitor_names:
                    # 尝试常见路径
                    paths_to_try = [
                        f"/Simulation/Reports/Monitor/{name}/Data",
                        f"/Simulation/Reports/{name}/Data",
                        f"/Results/Monitors/{name}"
                    ]
                    found = False
                    for path in paths_to_try:
                        if path in f:
                            data = f[path][:]
                            extracted[name] = data.tolist() if len(data) > 0 else []
                            found = True
                            break
                    if not found:
                        extracted[name] = "Not found"
                return {"status": "success", "results": extracted}
        except ImportError:
            return {"status": "error", "message": "需要安装h5py库: pip install h5py"}
        except Exception as e:
            return {"status": "error", "message": str(e)}
    def _parse_intent(self, message):
        """解析用户自然语言意图"""
        if "仅网格" in message or "只画网格" in message:
            return {"action": "mesh_only"}
        elif "参数扫描" in message or "批量参数" in message:
            return {"action": "param_sweep"}
        elif "宏" in message:
            return {"action": "execute_macro"}
        elif "提取结果" in message or "后处理" in message:
            return {"action": "extract_results"}
        else:
            return {"action": "batch_run"}
```
技能注册配置
```yaml
# starccm-skill/skill.yaml
name: starccm-automation
version: 1.0.0
description: STAR-CCM+流体动力学仿真自动化技能
author:
  name: Your Name
  email: you@example.com
triggers:
  - pattern: "STAR-CCM"
  - pattern: "STARCCM"
  - pattern: "流体仿真"
  - pattern: "CFD仿真"
  - pattern: "流场分析"
config:
  starccm_path:
    type: string
    required: true
    description: "STAR-CCM+可执行文件路径(如 C:\\Program Files\\Siemens\\STAR-CCM+2024.1\\star\\bin\\starccm+)"
  license_server:
    type: string
    required: true
    default: "1999@flexserver"
    description: "许可证服务器地址"
  default_np:
    type: integer
    required: false
    default: 8
    description: "默认并行进程数"
runtime: python3
entry: starccm_skill.py
```
🚀 五、实战部署与使用
5.1 环境准备
```bash
# 1. 确认STAR-CCM+命令行可用
starccm+ -help
# 2. 安装Python依赖(用于结果提取)
pip install h5py numpy
# 3. 安装OpenClaw技能包
openclaw skills install ./starccm-skill/
# 4. 配置STAR-CCM+路径
openclaw skills config starccm-automation --set starccm_path="C:\Program Files\Siemens\STAR-CCM+2024.1\star\bin\starccm+"
openclaw skills config starccm-automation --set license_server="1999@flexserver"
```
5.2 使用示例
示例1:批量运行仿真
"帮我用STAR-CCM+运行模型model.sim,使用8核并行计算"
OpenClaw会自动调用_batch_run方法,提交仿真任务。
示例2:仅生成网格(集群环境)
"在集群上只生成网格,模型是model.sim,用32核"
OpenClaw会调用_mesh_only方法,生成网格后停止,不进行求解。
示例3:参数扫描(不同横风角度)
"对火车模型进行不同横风角度的阻力分析,角度从0到30度,步长5度"
假设你的Java宏模板中有${ANGLE}占位符,OpenClaw会自动生成7个临时宏文件并依次执行。
示例4:提取监控数据
"提取model.sim中的升力系数和阻力系数数据"
OpenClaw会使用h5py解析HDF5格式的.sim文件,返回监控数据。
⚡ 六、高级应用技巧
6.1 集群环境批处理集成
STAR-CCM+支持与多种批处理系统(PBS、Slurm、LSF等)交互。使用-batchsystem参数可以让STAR-CCM+自动检测集群分配的资源:
```python
def starccm_cluster_submit(sim_file, batch_system="slurm", walltime="24:00:00"):
    """
    集群环境提交STAR-CCM+任务
    """
    cmd = f'starccm+ -batchsystem {batch_system} -batch run "{sim_file}"'
    # 集群作业脚本示例
    sbatch_script = f"""#!/bin/bash
#SBATCH -J starccm_job
#SBATCH -N 4
#SBATCH --ntasks-per-node=8
#SBATCH -t {walltime}
module load starccm/2024.1
{cmd}
"""
    return sbatch_script
```
6.2 自定义作业脚本
对于更复杂的控制需求,可以使用自定义作业脚本,在STAR-CCM+执行前后运行其他程序:
```bash
#!/bin/bash
# 作业提交脚本示例
#SBATCH -J starccm_analysis
#SBATCH -N 4
#SBATCH --ntasks-per-node=8
# 仿真前处理:准备数据
python preprocess.py
# 运行STAR-CCM+
starccm+ -batch run model.sim -np 32
# 仿真后处理:提取结果
python postprocess.py
```
6.3 Design Manager设计研究自动化
在Design Manager中进行设计研究时,可以在四个关键节点插入自定义Java宏:
· 更新模型前:修改几何参数
· 网格化前:调整网格设置
· 运行前:修改求解参数
· 结果前:自定义结果输出
⚠️ 七、注意事项
1. Java宏录制技巧:在STAR-CCM+ GUI中操作时,打开宏录制功能(File → Macro → Record),完成后保存为.java文件。然后将需要参数化的值替换为占位符
2. 批处理模式限制:-batch模式下,STAR-CCM+不显示GUI界面,所有操作在后台执行
3. 许可证管理:确保许可证服务器可访问,使用-licpath参数指定
4. 集群提交注意事项:
   · 始终分配完整节点,避免进程分布不均匀
   · 估算仿真运行时间(Walltime),分配足够但不过量的时间
   · 提交指令应收集在单个块中,指令块后必须有空行
5. 结果文件格式:.sim文件是HDF5格式,建议使用h5py库读取;监控数据可通过Reports中的Monitor自动导出
📚 八、参考资源
· STAR-CCM+官方文档:Java宏录制与回放
· STAR-CCM+批处理命令详解
· Java宏应用案例(电池热管理、横风分析)
· STAR-CCM+脚本语言基础
· 集群批处理系统配置指南
基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-03-29 03:30:47 HTTP/1.1 GET : https://www.yeyulingfeng.com/a/490623.html
  2. 运行时间 : 0.250020s [ 吞吐率:4.00req/s ] 内存消耗:4,816.36kb 文件加载:145
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=33bbed8ae744e440324939b475182b3d
  1. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/public/index.php ( 0.79 KB )
  2. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/autoload.php ( 0.17 KB )
  3. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/composer/autoload_real.php ( 2.49 KB )
  4. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/composer/platform_check.php ( 0.90 KB )
  5. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/composer/ClassLoader.php ( 14.03 KB )
  6. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/composer/autoload_static.php ( 6.05 KB )
  7. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/helper.php ( 8.34 KB )
  8. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-validate/src/helper.php ( 2.19 KB )
  9. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/ralouphie/getallheaders/src/getallheaders.php ( 1.60 KB )
  10. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/helper.php ( 1.47 KB )
  11. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/stubs/load_stubs.php ( 0.16 KB )
  12. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Exception.php ( 1.69 KB )
  13. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-container/src/Facade.php ( 2.71 KB )
  14. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/symfony/deprecation-contracts/function.php ( 0.99 KB )
  15. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/symfony/polyfill-mbstring/bootstrap.php ( 8.26 KB )
  16. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/symfony/polyfill-mbstring/bootstrap80.php ( 9.78 KB )
  17. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/symfony/var-dumper/Resources/functions/dump.php ( 1.49 KB )
  18. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-dumper/src/helper.php ( 0.18 KB )
  19. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/symfony/var-dumper/VarDumper.php ( 4.30 KB )
  20. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/guzzlehttp/guzzle/src/functions_include.php ( 0.16 KB )
  21. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/guzzlehttp/guzzle/src/functions.php ( 5.54 KB )
  22. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/App.php ( 15.30 KB )
  23. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-container/src/Container.php ( 15.76 KB )
  24. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/psr/container/src/ContainerInterface.php ( 1.02 KB )
  25. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/provider.php ( 0.19 KB )
  26. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Http.php ( 6.04 KB )
  27. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/helper/Str.php ( 7.29 KB )
  28. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Env.php ( 4.68 KB )
  29. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/common.php ( 0.03 KB )
  30. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/helper.php ( 18.78 KB )
  31. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Config.php ( 5.54 KB )
  32. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/alipay.php ( 3.59 KB )
  33. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/facade/Env.php ( 1.67 KB )
  34. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/app.php ( 0.95 KB )
  35. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/cache.php ( 0.78 KB )
  36. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/console.php ( 0.23 KB )
  37. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/cookie.php ( 0.56 KB )
  38. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/database.php ( 2.48 KB )
  39. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/filesystem.php ( 0.61 KB )
  40. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/lang.php ( 0.91 KB )
  41. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/log.php ( 1.35 KB )
  42. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/middleware.php ( 0.19 KB )
  43. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/route.php ( 1.89 KB )
  44. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/session.php ( 0.57 KB )
  45. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/trace.php ( 0.34 KB )
  46. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/view.php ( 0.82 KB )
  47. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/event.php ( 0.25 KB )
  48. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Event.php ( 7.67 KB )
  49. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/service.php ( 0.13 KB )
  50. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/AppService.php ( 0.26 KB )
  51. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Service.php ( 1.64 KB )
  52. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Lang.php ( 7.35 KB )
  53. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/lang/zh-cn.php ( 13.70 KB )
  54. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/initializer/Error.php ( 3.31 KB )
  55. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/initializer/RegisterService.php ( 1.33 KB )
  56. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/services.php ( 0.14 KB )
  57. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/service/PaginatorService.php ( 1.52 KB )
  58. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/service/ValidateService.php ( 0.99 KB )
  59. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/service/ModelService.php ( 2.04 KB )
  60. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-trace/src/Service.php ( 0.77 KB )
  61. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Middleware.php ( 6.72 KB )
  62. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/initializer/BootService.php ( 0.77 KB )
  63. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/Paginator.php ( 11.86 KB )
  64. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-validate/src/Validate.php ( 63.20 KB )
  65. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/Model.php ( 23.55 KB )
  66. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/Attribute.php ( 21.05 KB )
  67. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/AutoWriteData.php ( 4.21 KB )
  68. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/Conversion.php ( 6.44 KB )
  69. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/DbConnect.php ( 5.16 KB )
  70. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/ModelEvent.php ( 2.33 KB )
  71. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/RelationShip.php ( 28.29 KB )
  72. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/contract/Arrayable.php ( 0.09 KB )
  73. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/contract/Jsonable.php ( 0.13 KB )
  74. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/contract/Modelable.php ( 0.09 KB )
  75. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Db.php ( 2.88 KB )
  76. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/DbManager.php ( 8.52 KB )
  77. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Log.php ( 6.28 KB )
  78. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Manager.php ( 3.92 KB )
  79. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/psr/log/src/LoggerTrait.php ( 2.69 KB )
  80. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/psr/log/src/LoggerInterface.php ( 2.71 KB )
  81. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Cache.php ( 4.92 KB )
  82. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/psr/simple-cache/src/CacheInterface.php ( 4.71 KB )
  83. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/helper/Arr.php ( 16.63 KB )
  84. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/cache/driver/File.php ( 7.84 KB )
  85. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/cache/Driver.php ( 9.03 KB )
  86. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/contract/CacheHandlerInterface.php ( 1.99 KB )
  87. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/Request.php ( 0.09 KB )
  88. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Request.php ( 55.78 KB )
  89. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/middleware.php ( 0.25 KB )
  90. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Pipeline.php ( 2.61 KB )
  91. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-trace/src/TraceDebug.php ( 3.40 KB )
  92. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/middleware/SessionInit.php ( 1.94 KB )
  93. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Session.php ( 1.80 KB )
  94. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/session/driver/File.php ( 6.27 KB )
  95. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/contract/SessionHandlerInterface.php ( 0.87 KB )
  96. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/session/Store.php ( 7.12 KB )
  97. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Route.php ( 23.73 KB )
  98. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/RuleName.php ( 5.75 KB )
  99. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/Domain.php ( 2.53 KB )
  100. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/RuleGroup.php ( 22.43 KB )
  101. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/Rule.php ( 26.95 KB )
  102. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/RuleItem.php ( 9.78 KB )
  103. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/route/app.php ( 3.94 KB )
  104. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/facade/Route.php ( 4.70 KB )
  105. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/dispatch/Controller.php ( 4.74 KB )
  106. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/Dispatch.php ( 10.44 KB )
  107. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/controller/Index.php ( 9.68 KB )
  108. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/BaseController.php ( 2.05 KB )
  109. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/facade/Db.php ( 0.93 KB )
  110. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/connector/Mysql.php ( 5.44 KB )
  111. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/PDOConnection.php ( 52.47 KB )
  112. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/Connection.php ( 8.39 KB )
  113. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/ConnectionInterface.php ( 4.57 KB )
  114. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/builder/Mysql.php ( 16.58 KB )
  115. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/Builder.php ( 24.06 KB )
  116. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/BaseBuilder.php ( 27.50 KB )
  117. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/Query.php ( 15.71 KB )
  118. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/BaseQuery.php ( 45.13 KB )
  119. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/TimeFieldQuery.php ( 7.43 KB )
  120. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/AggregateQuery.php ( 3.26 KB )
  121. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/ModelRelationQuery.php ( 20.07 KB )
  122. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/ParamsBind.php ( 3.66 KB )
  123. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/ResultOperation.php ( 7.01 KB )
  124. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/WhereQuery.php ( 19.37 KB )
  125. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/JoinAndViewQuery.php ( 7.11 KB )
  126. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/TableFieldInfo.php ( 2.63 KB )
  127. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/Transaction.php ( 2.77 KB )
  128. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/log/driver/File.php ( 5.96 KB )
  129. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/contract/LogHandlerInterface.php ( 0.86 KB )
  130. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/log/Channel.php ( 3.89 KB )
  131. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/event/LogRecord.php ( 1.02 KB )
  132. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/Collection.php ( 16.47 KB )
  133. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/facade/View.php ( 1.70 KB )
  134. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/View.php ( 4.39 KB )
  135. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/controller/Es.php ( 3.30 KB )
  136. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Response.php ( 8.81 KB )
  137. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/response/View.php ( 3.29 KB )
  138. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Cookie.php ( 6.06 KB )
  139. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-view/src/Think.php ( 8.38 KB )
  140. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/contract/TemplateHandlerInterface.php ( 1.60 KB )
  141. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-template/src/Template.php ( 46.61 KB )
  142. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-template/src/template/driver/File.php ( 2.41 KB )
  143. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-template/src/template/contract/DriverInterface.php ( 0.86 KB )
  144. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/runtime/temp/c935550e3e8a3a4c27dd94e439343fdf.php ( 31.80 KB )
  145. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-trace/src/Html.php ( 4.42 KB )
  1. CONNECT:[ UseTime:0.000973s ] mysql:host=127.0.0.1;port=3306;dbname=wenku;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.001814s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000795s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.001023s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.001605s ]
  6. SELECT * FROM `set` [ RunTime:0.000654s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.001465s ]
  8. SELECT * FROM `article` WHERE `id` = 490623 LIMIT 1 [ RunTime:0.001666s ]
  9. UPDATE `article` SET `lasttime` = 1774726247 WHERE `id` = 490623 [ RunTime:0.001629s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 64 LIMIT 1 [ RunTime:0.000595s ]
  11. SELECT * FROM `article` WHERE `id` < 490623 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.001210s ]
  12. SELECT * FROM `article` WHERE `id` > 490623 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.001244s ]
  13. SELECT * FROM `article` WHERE `id` < 490623 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.002909s ]
  14. SELECT * FROM `article` WHERE `id` < 490623 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.006150s ]
  15. SELECT * FROM `article` WHERE `id` < 490623 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.005253s ]
0.256224s