Skip to content

Commit 53b4a62

Browse files
remove IntervalDomain
1 parent 8ccc204 commit 53b4a62

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

docs/src/systems/PDESystem.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ single or a collection of independent variables, and `domain` is the chosen
4242
domain type. Thus forms for the `indepvar` can be like:
4343

4444
```julia
45-
t IntervalDomain(0.0,1.0)
45+
t Interval(0.0,1.0)
4646
(t,x) UnitDisk()
4747
[v,w,x,y,z] VectorUnitBall(5)
4848
```
4949

5050
#### Domain Types (WIP)
5151

52-
- `IntervalDomain(a,b)`: Defines the domain of an interval from `a` to `b`
52+
- `Interval(a,b)`: Defines the domain of an interval from `a` to `b`
5353

5454
## `discretize` and `symbolic_discretize`
5555

src/ModelingToolkit.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ export runge_kutta_discretize
158158
export PDESystem
159159
export Reaction, ReactionSystem, ismassaction, oderatelaw, jumpratelaw
160160
export Differential, expand_derivatives, @derivatives
161-
export IntervalDomain, ProductDomain, , CircleDomain
162161
export Equation, ConstrainedEquation
163162
export Term, Sym
164163
export SymScope, LocalScope, ParentScope, GlobalScope

src/systems/pde/pdesystem.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ bcs = [u(t,0) ~ 0.,# for all t > 0
2828
Dt(u(0,x)) ~ 0. ] #for all 0 < x < 1]
2929
3030
# Space and time domains
31-
domains = [t ∈ IntervalDomain(0.0,1.0),
32-
x ∈ IntervalDomain(0.0,1.0)]
31+
domains = [t ∈ Interval(0.0,1.0),
32+
x ∈ Interval(0.0,1.0)]
3333
3434
pde_system = PDESystem(eq,bcs,domains,[t,x],[u])
3535
```

test/pde.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ eq = Dt(u(t,x)) ~ Dxx(u(t,x))
99
bcs = [u(0,x) ~ - x * (x-1) * sin(x),
1010
u(t,0) ~ 0, u(t,1) ~ 0]
1111

12-
domains = [t IntervalDomain(0.0,1.0),
13-
x IntervalDomain(0.0,1.0)]
12+
domains = [t Interval(0.0,1.0),
13+
x Interval(0.0,1.0)]
1414

1515
pdesys = PDESystem(eq,bcs,domains,[t,x],[u])

0 commit comments

Comments
 (0)