default: {
    checkDatas: (id: string, task: ISimulationTask) => Promise<string[]>;
    checkResults: (id: string, task: ISimulationTask) => Promise<string[]>;
    clean: (simulationPath: string) => Promise<void>;
    computeMesh: (
        simulationPath: string,
        configuration: {
            boundaryConditions: IModelBoundaryConditions;
            dimension: undefined | number;
            geometry: {
                data: undefined | { file?: string; name?: string; path?: string };
                meshParameters:
                    | undefined
                    | IModelMeshSizeManual
                    | IModelMeshSizeAuto
                    | IModelMeshSizeFactor;
                value: undefined
                | string;
            };
            initialization: undefined
            | IModelInitialization;
            run: { cloudServer: undefined | HPCClientPlugin };
        },
        updateTasksHelper: UpdateTasksHelper,
    ) => Promise<ISimulationTaskFile>;
    computeMeshes: (
        simulationId: string,
        simulationPath: string,
        configuration: {
            boundaryConditions: IModelBoundaryConditions;
            dimension?: number;
            geometry: IModelGeometry;
            initialization?: IModelInitialization;
            materials?: IModelMaterials;
            parameters: IModelParameters;
            run: IModelRun;
        },
        updateTasksHelper: UpdateTasksHelper,
    ) => Promise<void>;
    computeSimulation: (
        simulation: { id: string },
        scheme: IModel,
        keepMesh?: boolean,
    ) => Promise<void>;
    emptyFunction: () => undefined;
    files: { data: string; end: string; log: string };
    getRefinements: (
        boundaryConditions: IModelBoundaryConditions,
    ) => IModelMeshRefinement[];
    init: (
        configuration: {
            [key: string]: {
                default?: string | number | boolean;
                label: string;
                options?: string[];
                props?: any;
                rules?: {
                    max?: number;
                    message?: string;
                    min?: number;
                    required?: boolean;
                }[];
                secret?: boolean;
                tooltip?: string;
                type: "password"
                | "input"
                | "select"
                | "textarea";
                value?: string | number | boolean;
            };
        },
    ) => Promise<void>;
    key: string;
    monitoring: (
        id: string,
        _: any,
        updateTasksHelper: UpdateTasksHelper,
    ) => Promise<void>;
    paths: { coupling: string; data: string; result: string; run: string };
    processData: (
        id: string,
        data: IOutput,
        simulationPath: string,
        updateTasksHelper: UpdateTasksHelper,
    ) => Promise<void>;
    processResult: (
        id: string,
        result: IOutput,
        simulationPath: string,
        updateTasksHelper: UpdateTasksHelper,
    ) => Promise<void>;
    startProcess: (
        id: string,
        simulationPath: string,
        updateTasksHelper: UpdateTasksHelper,
    ) => SetIntervalAsyncTimer<any>;
    stop: (id: string, tasks: ISimulationTask[]) => Promise<void>;
    stopProcess: (
        id: string,
        simulationPath: string,
        updateTasksHelper: UpdateTasksHelper,
    ) => Promise<void>;
    updateTasks: (id: string, tasks: ISimulationTask[]) => void;
} = ...

Type declaration

  • checkDatas: (id: string, task: ISimulationTask) => Promise<string[]>
  • checkResults: (id: string, task: ISimulationTask) => Promise<string[]>
  • clean: (simulationPath: string) => Promise<void>
  • computeMesh: (
        simulationPath: string,
        configuration: {
            boundaryConditions: IModelBoundaryConditions;
            dimension: undefined | number;
            geometry: {
                data: undefined | { file?: string; name?: string; path?: string };
                meshParameters:
                    | undefined
                    | IModelMeshSizeManual
                    | IModelMeshSizeAuto
                    | IModelMeshSizeFactor;
                value: undefined
                | string;
            };
            initialization: undefined
            | IModelInitialization;
            run: { cloudServer: undefined | HPCClientPlugin };
        },
        updateTasksHelper: UpdateTasksHelper,
    ) => Promise<ISimulationTaskFile>
  • computeMeshes: (
        simulationId: string,
        simulationPath: string,
        configuration: {
            boundaryConditions: IModelBoundaryConditions;
            dimension?: number;
            geometry: IModelGeometry;
            initialization?: IModelInitialization;
            materials?: IModelMaterials;
            parameters: IModelParameters;
            run: IModelRun;
        },
        updateTasksHelper: UpdateTasksHelper,
    ) => Promise<void>
  • computeSimulation: (
        simulation: { id: string },
        scheme: IModel,
        keepMesh?: boolean,
    ) => Promise<void>
  • emptyFunction: () => undefined
  • files: { data: string; end: string; log: string }
  • getRefinements: (boundaryConditions: IModelBoundaryConditions) => IModelMeshRefinement[]
  • init: (
        configuration: {
            [key: string]: {
                default?: string | number | boolean;
                label: string;
                options?: string[];
                props?: any;
                rules?: {
                    max?: number;
                    message?: string;
                    min?: number;
                    required?: boolean;
                }[];
                secret?: boolean;
                tooltip?: string;
                type: "password"
                | "input"
                | "select"
                | "textarea";
                value?: string | number | boolean;
            };
        },
    ) => Promise<void>
  • key: string
  • monitoring: (id: string, _: any, updateTasksHelper: UpdateTasksHelper) => Promise<void>
  • paths: { coupling: string; data: string; result: string; run: string }
  • processData: (
        id: string,
        data: IOutput,
        simulationPath: string,
        updateTasksHelper: UpdateTasksHelper,
    ) => Promise<void>
  • processResult: (
        id: string,
        result: IOutput,
        simulationPath: string,
        updateTasksHelper: UpdateTasksHelper,
    ) => Promise<void>
  • startProcess: (
        id: string,
        simulationPath: string,
        updateTasksHelper: UpdateTasksHelper,
    ) => SetIntervalAsyncTimer<any>
  • stop: (id: string, tasks: ISimulationTask[]) => Promise<void>
  • stopProcess: (
        id: string,
        simulationPath: string,
        updateTasksHelper: UpdateTasksHelper,
    ) => Promise<void>
  • updateTasks: (id: string, tasks: ISimulationTask[]) => void