This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from abaqus import * | |
from abaqusConstants import * | |
from odbAccess import * | |
def extract_node_data(odb_path, step_name, frame_number=-1): | |
""" | |
Extract node coordinates and CPRESS field from an Abaqus ODB file | |
Parameters: | |
----------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pydantic import BaseModel | |
from typing import Dict, Any, TypeVar, Type, List, Optional, Union, Generic | |
import os | |
import json | |
from openai import OpenAI | |
client = OpenAI( | |
api_key=os.environ["GEMINI_KEY"], | |
base_url="https://generativelanguage.googleapis.com/v1beta/" | |
) |