Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
getdp
cim
Commits
e00cc997
Commit
e00cc997
authored
7 years ago
by
Nicolas Marsic
Browse files
Options
Downloads
Patches
Plain Diff
update maxwell_sibc case
parent
aa5d124c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
example/maxwell_sibc/cimParameters.pro
+7
-3
7 additions, 3 deletions
example/maxwell_sibc/cimParameters.pro
example/maxwell_sibc/cimResolution.pro
+16
-7
16 additions, 7 deletions
example/maxwell_sibc/cimResolution.pro
with
23 additions
and
10 deletions
example/maxwell_sibc/cimParameters.pro
+
7
−
3
View file @
e00cc997
...
...
@@ -11,11 +11,15 @@ Function{
angularFreqIm
];
//
[
rad
/
m
]
//
Algebraic
data
//
DefineConstant
[
x
()
=
{},
//
Solution
b
()
=
{}];
//
Right
hand
side
DefineConstant
[
nRHS
=
1
];
//
Number
of
RHS
for
this
run
For
i
In
{
0
:
nRHS
-
1
}
DefineConstant
[
x
~
{
i
}()
=
{},
//
Solution
b
~
{
i
}()
=
{}];
//
Right
hand
side
EndFor
//
Control
data
//
DefineConstant
[
imposeRHS
=
0
,
//
Should
I
use
an
imposed
RHS
?
DefineConstant
[
doInit
=
0
,
//
Should
I
initialize
some
stuff
?
doSolve
=
0
,
//
Should
I
solve
Ax
=
b
?
doPostpro
=
0
,
//
Should
I
only
create
a
view
for
x
()
?
doApply
=
0
,
//
Should
I
only
apply
x
()
:
x
<-
Ax
?
fileName
=
"eig.pos"
];
//
Postpro
file
name
...
...
This diff is collapsed.
Click to expand it.
example/maxwell_sibc/cimResolution.pro
+
16
−
7
View file @
e00cc997
...
...
@@ -9,23 +9,32 @@ Resolution{
Operation
{
Generate
[
A
];
If
(
imposeRHS
)
Copy
RightHandSide
[
b
(),
A
];
If
(
doInit
)
Copy
Solution
[
A
,
x
~
{
0
}()
];
EndIf
If
(!
doPostpro
&&
!
doApply
)
If
(
doSolve
)
//
Full
solve
for
first
RHS
CopyRightHandSide
[
b
~
{
0
}(),
A
];
Solve
[
A
];
CopySolution
[
A
,
x
()];
CopySolution
[
A
,
x
~
{
0
}()];
//
SolveAgain
for
other
RHSs
For
i
In
{
1
:
nRHS
-
1
}
CopyRightHandSide
[
b
~
{
i
}(),
A
];
SolveAgain
[
A
];
CopySolution
[
A
,
x
~
{
i
}()];
EndFor
EndIf
If
(
doApply
)
CopySolution
[
x
(),
A
];
CopySolution
[
x
~
{
0
}
(),
A
];
Apply
[
A
];
CopySolution
[
A
,
x
()];
CopySolution
[
A
,
x
~
{
0
}
()];
EndIf
If
(
doPostpro
)
CopySolution
[
x
(),
A
];
CopySolution
[
x
~
{
0
}
(),
A
];
PostOperation
[
Post
];
EndIf
}
...
...
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