... | ... | @@ -13,7 +13,7 @@ Line(1) = {1, 2}; |
|
|
Line(2) = {2, 3};
|
|
|
Line(3) = {3, 4};
|
|
|
Line(4) = {4, 1};
|
|
|
Line Loop(5) = {4, 1, 2, 3};
|
|
|
Curve Loop(5) = {4, 1, 2, 3};
|
|
|
Plane Surface(6) = {5};
|
|
|
Physical Surface(7) = {6};
|
|
|
```
|
... | ... | @@ -52,11 +52,13 @@ Function { |
|
|
1,100
|
|
|
};
|
|
|
|
|
|
// Lists can also be loaded from a file. The structure is the same but the values are separated by spaces!
|
|
|
// Lists can also be loaded from a file. The structure is the same but the
|
|
|
// values are separated by spaces!
|
|
|
MyListB = ListFromFile["Table_1D.txt"];
|
|
|
|
|
|
|
|
|
// The values for u and f can be in separate lists which then must be combined to one list before doing the interpolation.
|
|
|
// The values for u and f can be in separate lists which then must be combined
|
|
|
// to one list before doing the interpolation.
|
|
|
uList = { 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1 };
|
|
|
fList = { 0, 1, 4, 9, 16, 25, 36, 49, 64, 81, 100 };
|
|
|
MyListC = ListAlt[uList(), fList()];
|
... | ... | @@ -102,7 +104,6 @@ Constraint { |
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
Jacobian {
|
|
|
{ Name JVol;
|
|
|
Case {
|
... | ... | @@ -117,11 +118,11 @@ Integration { |
|
|
Case {
|
|
|
{ Type Gauss ;
|
|
|
Case {
|
|
|
{ GeoElement Point ; NumberOfPoints 1 ; }
|
|
|
{ GeoElement Line ; NumberOfPoints 5 ; }
|
|
|
{ GeoElement Triangle ; NumberOfPoints 6 ; }
|
|
|
{ GeoElement Quadrangle ; NumberOfPoints 7 ; }
|
|
|
}
|
|
|
{ GeoElement Point ; NumberOfPoints 1 ; }
|
|
|
{ GeoElement Line ; NumberOfPoints 5 ; }
|
|
|
{ GeoElement Triangle ; NumberOfPoints 6 ; }
|
|
|
{ GeoElement Quadrangle ; NumberOfPoints 7 ; }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
... | ... | @@ -147,8 +148,8 @@ Formulation { |
|
|
}
|
|
|
Equation {
|
|
|
// Here we simply set the values of H according the values from the function g_List
|
|
|
Galerkin { [ Dof{H}, {H} ]; In Surf; Integration I1; Jacobian JVol; }
|
|
|
Galerkin { [ -g_List[X[],Y[]], {H} ]; In Surf; Integration I1; Jacobian JVol; }
|
|
|
Integral { [ Dof{H}, {H} ]; In Surf; Integration I1; Jacobian JVol; }
|
|
|
Integral { [ -g_List[X[],Y[]], {H} ]; In Surf; Integration I1; Jacobian JVol; }
|
|
|
}
|
|
|
}
|
|
|
}
|
... | ... | @@ -160,10 +161,9 @@ Resolution { |
|
|
{ Name SetH; NameOfFormulation SetH; }
|
|
|
}
|
|
|
Operation {
|
|
|
InitSolution[SetH];
|
|
|
Generate[SetH];
|
|
|
Solve[SetH];
|
|
|
SaveSolution[SetH];
|
|
|
Generate[SetH];
|
|
|
Solve[SetH];
|
|
|
SaveSolution[SetH];
|
|
|
}
|
|
|
}
|
|
|
}
|
... | ... | @@ -173,21 +173,20 @@ PostProcessing { |
|
|
{ Name Postpro; NameOfFormulation SetH;
|
|
|
Quantity {
|
|
|
// Values derived from the 1D tables with the x-position as function argument -> f(x)
|
|
|
{ Name fA; Value{ Local{ [ f_A[ X[] ] ]; In Surf; Jacobian JVol;} } }
|
|
|
{ Name fB; Value{ Local{ [ f_B[ X[] ] ]; In Surf; Jacobian JVol;} } }
|
|
|
{ Name fC; Value{ Local{ [ f_C[ X[] ] ]; In Surf; Jacobian JVol;} } }
|
|
|
{ Name fD; Value{ Local{ [ f_D[ X[] ] ]; In Surf; Jacobian JVol;} } }
|
|
|
{ Name fAnalytic; Value{ Local{ [ f_Analytic[ X[] ] ]; In Surf; Jacobian JVol;} } }
|
|
|
{ Name fA; Value{ Term{ [ f_A[ X[] ] ]; In Surf; Jacobian JVol;} } }
|
|
|
{ Name fB; Value{ Term{ [ f_B[ X[] ] ]; In Surf; Jacobian JVol;} } }
|
|
|
{ Name fC; Value{ Term{ [ f_C[ X[] ] ]; In Surf; Jacobian JVol;} } }
|
|
|
{ Name fD; Value{ Term{ [ f_D[ X[] ] ]; In Surf; Jacobian JVol;} } }
|
|
|
{ Name fAnalytic; Value{ Term{ [ f_Analytic[ X[] ] ]; In Surf; Jacobian JVol;} } }
|
|
|
|
|
|
// Values derived from the 2D table with the x- and y-position as function arguments -> g(x,y)
|
|
|
{ Name gList; Value{ Local{ [ g_List[ X[], Y[] ] ]; In Surf; Jacobian JVol;} } }
|
|
|
{ Name gAnalytic; Value{ Local{ [ g_Analytic[ X[], Y[] ] ]; In Surf; Jacobian JVol;} } }
|
|
|
{ Name gList; Value{ Term{ [ g_List[ X[], Y[] ] ]; In Surf; Jacobian JVol;} } }
|
|
|
{ Name gAnalytic; Value{ Term{ [ g_Analytic[ X[], Y[] ] ]; In Surf; Jacobian JVol;} } }
|
|
|
|
|
|
// The function "dInterpolationBilinear" is implemented since version 2.3.1
|
|
|
{ Name gDerivativeList; Value{ Local{ [ g_Derivative_List[ X[], Y[] ] ]; In Surf; Jacobian JVol;} } }
|
|
|
{ Name gDerivativeAnalytic; Value{ Local{ [ g_Derivative_Analytic[ X[], Y[] ] ]; In Surf; Jacobian JVol;} } }
|
|
|
|
|
|
{ Name H; Value{ Local{ [ {H} ]; In Surf; Jacobian JVol;} } }
|
|
|
{ Name gDerivativeList; Value{ Term{ [ g_Derivative_List[ X[], Y[] ] ]; In Surf; Jacobian JVol;} } }
|
|
|
{ Name gDerivativeAnalytic; Value{ Term{ [ g_Derivative_Analytic[ X[], Y[] ] ]; In Surf; Jacobian JVol;} } }
|
|
|
{ Name H; Value{ Term{ [ {H} ]; In Surf; Jacobian JVol;} } }
|
|
|
}
|
|
|
}
|
|
|
}
|
... | ... | |