Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
tutorials
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
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
documentation
tutorials
Commits
e08ebfc6
Commit
e08ebfc6
authored
7 months ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
use ValueOnly for OnPoint PostOperations when sending the value to the GUI with SendToServer
parent
9904bab4
No related branches found
No related tags found
No related merge requests found
Pipeline
#11923
passed
7 months ago
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Elasticity/wrench2D.pro
+2
-3
2 additions, 3 deletions
Elasticity/wrench2D.pro
Magnetostatics/electromagnet_common.pro
+1
-1
1 addition, 1 deletion
Magnetostatics/electromagnet_common.pro
PotentialFlow/magnus.pro
+2
-2
2 additions, 2 deletions
PotentialFlow/magnus.pro
with
5 additions
and
6 deletions
Elasticity/wrench2D.pro
+
2
−
3
View file @
e08ebfc6
...
@@ -41,8 +41,7 @@ Poisson = DefineNumber[ 0.3, Name "Material/Poisson coefficient []"];
...
@@ -41,8 +41,7 @@ Poisson = DefineNumber[ 0.3, Name "Material/Poisson coefficient []"];
AppliedForce
=
DefineNumber
[
100
,
Name
"Material/Applied force [N]"
];
AppliedForce
=
DefineNumber
[
100
,
Name
"Material/Applied force [N]"
];
// Approximation of the maximum deflection by an analytical model:
// Approximation of the maximum deflection by an analytical model:
// Deflection = PL^3/(3EI) with I = Width^3*Thickness/12
Deflection
=
DefineNumber
[
-
4
*
AppliedForce
*
((
LLength
-
0.018
)
/
Width
)
^
3
/
(
Young
*
Thickness
)
*
1e3
,
Deflection
=
DefineNumber
[
4
*
AppliedForce
*
((
LLength
-
0.018
)
/
Width
)
^
3
/
(
Young
*
Thickness
)
*
1e3
,
Name
"Solution/Deflection (analytical) [mm]"
,
ReadOnly
1
];
Name
"Solution/Deflection (analytical) [mm]"
,
ReadOnly
1
];
Group
{
Group
{
...
@@ -346,7 +345,7 @@ PostOperation {
...
@@ -346,7 +345,7 @@ PostOperation {
//Print[ sig_yy, OnElementsOf Wrench, File "sigyy.pos" ];
//Print[ sig_yy, OnElementsOf Wrench, File "sigyy.pos" ];
//Print[ sig_xy, OnElementsOf Wrench, File "sigxy.pos" ];
//Print[ sig_xy, OnElementsOf Wrench, File "sigxy.pos" ];
Print
[
uy
,
OnPoint
{
probe_x
,
probe_y
,
0
},
Print
[
uy
,
OnPoint
{
probe_x
,
probe_y
,
0
},
File
>
"deflection.pos"
,
Format
TimeTable
,
File
>
"deflection.pos"
,
Format
ValueOnly
,
SendToServer
"Solution/Deflection (computed) [mm]"
,
Color
"AliceBlue"
];
SendToServer
"Solution/Deflection (computed) [mm]"
,
Color
"AliceBlue"
];
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Magnetostatics/electromagnet_common.pro
+
1
−
1
View file @
e08ebfc6
// Parameters shared by Gmsh and GetDP
// Parameters shared by Gmsh and GetDP
rInt
=
200.e-3
;
rInt
=
200.e-3
;
rExt
=
250.e-3
;
rExt
=
250.e-3
;
This diff is collapsed.
Click to expand it.
PotentialFlow/magnus.pro
+
2
−
2
View file @
e08ebfc6
...
@@ -415,11 +415,11 @@ PostOperation{ // for the Airfoil model
...
@@ -415,11 +415,11 @@ PostOperation{ // for the Airfoil model
// P_edge = {1.0001,0,0}
// P_edge = {1.0001,0,0}
Print
[
phi
,
OnPoint
{
1.0001
,
0
,
0
},
File
>
"KJiter.txt"
,
Color
"Ivory"
,
Print
[
phi
,
OnPoint
{
1.0001
,
0
,
0
},
File
>
"KJiter.txt"
,
Color
"Ivory"
,
StoreInVariable
$
phiTrailing
,
StoreInVariable
$
phiTrailing
,
Format
Table
,
SendToServer
"Output/PhiTrailing"
];
Format
ValueOnly
,
SendToServer
"Output/PhiTrailing"
];
Print
[
Angle
,
OnPoint
{
1.0001
,
0
,
0
},
File
>
"KJiter.txt"
,
Color
"Ivory"
,
Print
[
Angle
,
OnPoint
{
1.0001
,
0
,
0
},
File
>
"KJiter.txt"
,
Color
"Ivory"
,
StoreInVariable
$
argV
,
StoreInVariable
$
argV
,
Format
Table
,
SendToServer
"Output/argVTrailing"
];
Format
ValueOnly
,
SendToServer
"Output/argVTrailing"
];
}
}
}
}
}
}
...
...
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