Skip to content
Snippets Groups Projects
Commit 51bae575 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

pp

parent 75e5519b
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -44,7 +44,7 @@ Group {
// * all surfaces connected to the lumped element circuit
Sur_Ele = Region[{Top1, Bottom1, Top2, Bottom2, Top3, Bottom3}];
// * total electrical computation domain
VolWithSur_Ele = Region[{Vol_Ele, Sur_Ele}];
Dom_Ele = Region[{Vol_Ele, Sur_Ele}];
}
// Circuit group data - Fictive regions for the circuit elements
......@@ -221,10 +221,10 @@ FunctionSpace {
// All nodes but the grouped nodes of the surfaces for connecting the
// circuitry
{ Name sn; NameOfCoef vn; Function BF_Node;
Support VolWithSur_Ele; Entity NodesOf[ All, Not Sur_Ele ]; }
Support Dom_Ele; Entity NodesOf[ All, Not Sur_Ele ]; }
// Grouped nodes: Each surface of Sur_Ele has just one single voltage
{ Name sf; NameOfCoef vf; Function BF_GroupOfNodes;
Support VolWithSur_Ele; Entity GroupsOfNodesOf[ Sur_Ele ]; }
Support Dom_Ele; Entity GroupsOfNodesOf[ Sur_Ele ]; }
}
GlobalQuantity {
{ Name U; Type AliasOf; NameOfCoef vf; }
......
// Just 4 cubes
Include "R_circuit_common.pro";
lc = 0.25; // Cjaracteristic length
Point(1) = {0, 0, 0, lc};
Extrude {1, 0, 0} {
Point{1};
}
Extrude {0, 1, 0} {
Line{1}; // Layers{10}; Recombine;
}
Extrude {0, 0, 1} {
Surface{5}; // Layers{10}; Recombine;
}
Translate {2, 0, 0} {
Duplicata { Volume{1}; }
}
Translate {0, 4, 0} {
Duplicata { Volume{1}; }
}
Translate {2, 4, 0} {
Duplicata { Volume{1}; }
}
Physical Surface(Cube1Top) = {27};
Physical Surface(Cube1Bottom) = {5};
Physical Surface(Cube2Top) = {34};
Physical Surface(Cube2Bottom) = {29};
Physical Surface(Cube3Top) = {61};
Physical Surface(Cube3Bottom) = {56};
Physical Surface(Cube4Top) = {88};
Physical Surface(Cube4Bottom) = {83};
Physical Volume(Cube1) = {1};
Physical Volume(Cube2) = {28};
Physical Volume(Cube3) = {55};
Physical Volume(Cube4) = {82};
// Just 4 cubes
Include "R_circuit_common.pro";
lc = 0.25; // Cjaracteristic length
Point(1) = {0, 0, 0, lc};
Extrude {1, 0, 0} {
Point{1};
}
Extrude {0, 1, 0} {
Line{1}; // Layers{10}; Recombine;
}
Extrude {0, 0, 1} {
Surface{5}; // Layers{10}; Recombine;
}
Translate {2, 0, 0} {
Duplicata { Volume{1}; }
}
Translate {0, 4, 0} {
Duplicata { Volume{1}; }
}
Translate {2, 4, 0} {
Duplicata { Volume{1}; }
}
Physical Surface(Cube1Top) = {27};
Physical Surface(Cube1Bottom) = {5};
Physical Surface(Cube2Top) = {34};
Physical Surface(Cube2Bottom) = {29};
Physical Surface(Cube3Top) = {61};
Physical Surface(Cube3Bottom) = {56};
Physical Surface(Cube4Top) = {88};
Physical Surface(Cube4Bottom) = {83};
Physical Volume(Cube1) = {1};
Physical Volume(Cube2) = {28};
Physical Volume(Cube3) = {55};
Physical Volume(Cube4) = {82};
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment