code_context string | task_instruction string | completion_target string | simulation_software string | physics_setting_categories list |
|---|---|---|---|---|
import numpy as np
import ufl
from mpi4py import MPI
from dolfinx import fem, mesh as dmesh
from dolfinx.fem.petsc import LinearProblem
from petsc4py import PETSc
mesh = dmesh.create_rectangle(
MPI.COMM_WORLD,
[np.array([0.0, 0.0]), np.array([0.5, 0.1])],
[100, 20],
cell_type=dmesh.CellType.triangle,
)... | Complete the transient advection–diffusion model for a dissolved species. Specify transport and reaction properties, initialize the concentration, prescribe the inlet concentration, and solve each time step. | diffusivity = fem.Constant(mesh, PETSc.ScalarType(2.0e-4))
reaction_rate = fem.Constant(mesh, PETSc.ScalarType(0.015))
source = fem.Constant(mesh, PETSc.ScalarType(0.0))
c_n = fem.Function(V)
c_n.interpolate(lambda x: np.zeros(x.shape[1], dtype=PETSc.ScalarType))
c_h = fem.Function(V)
inlet_dofs = fem.locate_dofs_geom... | FEniCSx (DOLFINx) | [
"物理场选择",
"材料属性",
"初始条件",
"边界条件"
] |
import numpy as np
import ufl
from mpi4py import MPI
from dolfinx import fem, mesh as dmesh
from dolfinx.fem.petsc import LinearProblem
from petsc4py import PETSc
mesh = dmesh.create_rectangle(
MPI.COMM_WORLD,
[np.array([0.0, 0.0]), np.array([0.12, 0.02])],
[48, 8],
cell_type=dmesh.CellType.triangle,
)... | Complete the transient heat-conduction setup for the plate. Define its thermal properties, initialize the temperature field, impose temperatures at both ends, and advance the solution in time. | rho = fem.Constant(mesh, PETSc.ScalarType(7800.0))
heat_capacity = fem.Constant(mesh, PETSc.ScalarType(460.0))
conductivity = fem.Constant(mesh, PETSc.ScalarType(16.0))
heat_source = fem.Constant(mesh, PETSc.ScalarType(0.0))
u_n = fem.Function(V)
u_n.interpolate(lambda x: np.full(x.shape[1], 293.15, dtype=PETSc.ScalarT... | FEniCSx (DOLFINx) | [
"物理场选择",
"材料属性",
"初始条件",
"边界条件"
] |
import numpy as np
import ufl
from mpi4py import MPI
from dolfinx import fem, mesh as dmesh
from dolfinx.fem.petsc import LinearProblem
from petsc4py import PETSc
mesh = dmesh.create_rectangle(
MPI.COMM_WORLD,
[np.array([0.0, 0.0]), np.array([0.20, 0.08])],
[80, 32],
cell_type=dmesh.CellType.triangle,
... | Complete the small-strain linear-elasticity model for a two-dimensional bracket. Define the isotropic material law and applied loads, constrain the left edge, and solve for displacement. | youngs_modulus = fem.Constant(mesh, PETSc.ScalarType(70.0e9))
poisson_ratio = 0.33
shear_modulus = youngs_modulus / (2.0 * (1.0 + poisson_ratio))
lame_lambda = (youngs_modulus * poisson_ratio) / ((1.0 + poisson_ratio) * (1.0 - 2.0 * poisson_ratio))
def strain(w):
return ufl.sym(ufl.grad(w))
def stress(w):
ret... | FEniCSx (DOLFINx) | [
"物理场选择",
"材料属性",
"边界条件"
] |
Physics Model and Boundary Condition Code Completion Dataset
Designed for physics and engineering simulation workflows, this dataset provides code contexts and completion targets for physics-field selection, material properties, initial conditions, and boundary conditions. Samples are organized with task instructions, code snippets, and complete completion text, alongside labels for physics-setting categories and identifiable simulation software or coding environments. It supports code SFT, simulation-configuration assistants, and evaluation of engineering code generation and completion.
Technical Specifications
| Field | Type | Description |
|---|---|---|
| code_context | string | Code snippet preceding the completion target, provided to help the model understand the current engineering simulation setup. |
| task_instruction | string | Describes the physics model or boundary condition code completion task. |
| completion_target | string | Complete code text used as the supervised completion target, including the model or condition configuration to generate. |
| simulation_software | string | Engineering simulation software or coding environment identified from the code; enter unknown when it cannot be determined. |
| physics_setting_categories | array | Physics configuration categories extracted from the code context or completion target, which may include physics fields, material properties, initial conditions, and boundary conditions. |
Compliance Statement
| Authorization Type | CC-BY-NC-SA 4.0 (Attribution–NonCommercial–ShareAlike) |
| Commercial Use | Requires exclusive subscription or authorization contract (monthly or per-invocation charging) |
| Privacy and Anonymization | No PII, no real company names, simulated scenarios follow industry standards |
| Compliance System | Compliant with China's Data Security Law / EU GDPR / supports enterprise data access logs |
Source & Contact
- Downloads last month
- -