m0_72982897 2024-03-28 17:19 采纳率: 0%
浏览 10

Carsim联合仿真

仿真软件Carsim,

img


图片中的这些模型都是什么意思呢,求解答!

  • 写回答

2条回答 默认 最新

  • 专家-皆知 2024-03-28 17:19
    关注

    引自免费微信小程序:皆我百晓生

    在Carsim联仿真中,图1描述的是六个汽车性能模型的配置。以下是每个模型的详细解释及其与carsim平台的关系:

    1. Video: This is a video model that includes a playback function. It allows the simulation to display a series of images or animations within the environment in real-time, making it useful for demonstrating vehicle dynamics or performance.

      Video + Plot;
      

      In Carsim, the Video model is used in conjunction with Video plots, which allow users to visualize vehicle models or scenarios in different frames using the 'Video' canvas.

    2. Set: This refers to a set of options for configuring a specific set of vehicles or simulations. The 'Set' node in the 'video' model's input graph contains a list of these options, such as:

      Set = {
          param1 = value1; % Model parameter value
          param2 = value2; % Another model parameter value
          ...
          model_name = name; % Name of the specified vehicle or simulation
        };
      

      These parameters can be used to customize the behavior and properties of each video or simulation in the set. For example, changing the model's position, velocity, or angle can affect its overall appearance or performance.

    3. Model': This specifies a model in the 'models' block. The models are created in various formats, including VTK, Mesh, FBX, etc., and are stored in a separate folder in Carsim. Each model has its own data structure, containing attributes and fields related to its physical characteristics and motion equations.

      Models = [Video;
                Video + Plot;
                Set;
                model_name];
      

      By specifying the 'Model', you are referring to a model instance created in Carsim that will be loaded into the simulation during runtime.

    4. ETAS ASCE: This is an established rule-based engineering analysis software system for simulating structural systems, especially those involving concrete. In Carsim, the ETAS ASCE model might be used for evaluating the strength, stiffness, and energy efficiency of a particular design for a given vehicle under various conditions. The ETAS model is typically developed by ASCE standards committees and contains detailed equations and data points that capture the behavior of concrete structures.

      Models = [ETAS ASCE];
      
    5. Export FMU/FMI: An FEM (Finite Element Method) is a numerical method used to solve partial differential equations (PDEs) for structurally loaded bodies. The export FMU/FMI process involves converting the complete analysis solution into an executable format, such as a MATLAB binary file (FMU), C++ source code (.FMI), or an executable script (FMI). The FMI files can then be saved or imported into other simulation tools, enabling interoperability between different software platforms.

      Export FMU = {export_mfu};
      Export FMI = {export_fmi};
      Export FLIB = {export_flib};
      Export EMF = {export_emf};
      Export EXTF = {export_extf};
      Export FMUType = {'OpenFOAM (*.fmu)'};
      Export FMIFile = 'model.export.fmi';
      Export FLIBFile = 'model.export.flib';
      Export EMFFile = 'model.export.emf';
      Export EXTFFile = 'model.export.extf';
      Export FMIModelName = 'my_model_name';
      Export FLIBModelName = 'my_model_name';
      Export EMFModelName = 'my_model_name';
      Import FMU = {import_fmu};
      Import FMI = {import_fmi};
      Import FLIB = {import_flib};
      Import EMF = {import_emf};
      Import EXTF = {import_extf};
      Import FMUType = {'OpenFOAM (*.fmu)'};
      Import FMIFile = 'model.import.fmi';
      Import FLIBFile = 'model.import.flib';
      Import EMFFile = 'model.import.emf';
      Import EXTFFile = 'model.import.extf';
      Import FMIModelName = 'my_model_name';
      Import FLIBModelName = 'my_model_name';
      Import EMFModelName = 'my_model_name';
      
    6. LabVIEW for Windows (VI): This model represents a user interface (UI) component designed specifically for Windows applications. LabVIEW for Windows provides advanced visualization features, such as charting, data acquisition, and user-friendly controls for interacting with simulation data. The LabVIEW VI model can include components like graphical editors, control panels, and signal processing modules to enhance the simulation experience for Windows users.

      LabVIEW VI = {};
      LabVIEW VI.UI = {'Slider'; 'Text'; 'Button'};
      LabVIEW VI.Slider = {'Position'};
      LabVIEW VI.Text = {'Value'};
      LabVIEW VI.Button = {'Click'};
      LabVIEW VI.AddCallback('callback_function_name', @Simulate);
      
    7. Self-Contained Solvers: Carsim supports a variety of solvers, including finite element methods (FEs), boundary element methods (BEMs), and finite difference methods (FDs). The solvers used for the models listed above could potentially be part of the Solvers block, allowing users to select and configure their preferred solver from a list of available options.

    To create a solvers block with multiple solvers, you would need to define separate 'Solvers' nodes for each solver type:

    ```matlab
    Solvers = [
        ...
        {name = 'FE', ...}; % Solver for FEs
        {name = 'BEM', ...}; % Solver for BEMs
        ...
        {name = 'FD', ...}; % Solver for FDs
    ];
    ```
    

    Each solver node will have the following inputs:

    * 'name': A string representing the name of the solver.
    * 'inputs': A table or cell array containing input data related to the solver's formulation and analysis algorithm, such as boundary conditions, material properties, and mesh elements.
    * 'solvers': A list or cell array containing information about the solver's algorithms and associated resources, including preprocessor libraries, solver-specific libraries, and optimization routines.
    

    Here's an example of how to create a solvers block with multiple solvers:

    ```matlab
    SolveBlock = {
        SolveType = 'FE';
        PreprocessorLibraries = {'libFeSolver.x'};
        SolverLibraries = {'libMesh.x', 'libMaterials.x'};
        OptimizationRoutines = {'feOptimization.x'};
        SolveParams = struct('Geometry', {'Box'}, 'BoundaryConditions', {'Dirichlet'}, 'MaterialProperties', {'Poisson'}, 'ElementType', {'Square'});
        RunTime = '1 hour';
        Simulate(time);
    };
    ```
    

    In this example, we're using the FE solver from the libFeSolver preprocessor library, the mesh and materials libraries from the libMesh and libMaterials libraries, and the feOptimization optimizer from the feOptimization preprocessor library. We also specify the geometry as a box, apply Dirichlet boundary conditions, use Poisson's equation to describe the soil deformation, and specify square elements.

    By creating a solvers block with multiple solvers, you can easily switch between them based on the specific requirements of your simulation project and improve the accuracy and robustness of the results. You can achieve this through the addition of "solvers" nodes under the "Models" block, updating their names and contents accordingly, and using a switch statement to determine which solver to use when running the simulation.

    评论 编辑记录

报告相同问题?

问题事件

  • 创建了问题 3月28日