Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TAeZoSysPro_testsuite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TAeZoSysPro
TAeZoSysPro_testsuite
Commits
e5f1348b
Commit
e5f1348b
authored
4 years ago
by
MARSOLLIER Felix
Browse files
Options
Downloads
Patches
Plain Diff
Modification of the model to test the reversal flow
parent
f39c419e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
PDE/test_UpwindFirstOrder.mo
+8
-4
8 additions, 4 deletions
PDE/test_UpwindFirstOrder.mo
with
8 additions
and
4 deletions
PDE/test_UpwindFirstOrder.mo
+
8
−
4
View file @
e5f1348b
within TAeZoSysPro_testsuite.PDE;
model test_UpwindFirstOrder
parameter Modelica.SIunits.Velocity Vel = 1;
parameter Modelica.SIunits.Length L = 1 "Length of the domain";
parameter Integer N = 5 "Number of discrete layer";
Modelica.SIunits.Velocity Vel;
TAeZoSysPro.PDE.Transport.UpwindFirstOrder transport(
CoeffTimeDer = 1,
CoeffSpaceDer = Vel,
...
...
@@ -13,16 +14,19 @@ model test_UpwindFirstOrder
x = linspace(0, L, N+1),
SourceTerm = fill(0.0, N)) annotation(
Placement(visible = true, transformation(origin = {0, 0}, extent = {{-20, -20}, {20, 20}}, rotation = 0)));
Modelica.Blocks.Sources.Pulse pulse(amplitude = -2, offset = 1, period = 4, startTime = 2) annotation(
Placement(visible = true, transformation(origin = {-60, 0}, extent = {{-20, -20}, {20, 20}}, rotation = 0)));
initial equation
transport.u[:, 1] = fill(0.0, N);
transport.u[:, 2] = fill(0.0, N);
equation
//
Vel = pulse.y;
// Boundary conditions
transport.u_ghost_left[:] = fill(1.0, 2);
transport.u_ghost_right[:] = fill(
1
.0, 2);
transport.u_ghost_right[:] = fill(
2
.0, 2);
end test_UpwindFirstOrder;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment