Search found 19 matches

by Jenwel
15 Oct 2017, 15:45
Forum: HPC
Topic: Can I open more than one ElmerSolver simultaneously in a PC?
Replies: 3
Views: 1910

Re: Can I open more than one ElmerSolver simultaneously in a PC?

Hi,
I have solved the problem now.

The reason is that the Elmer version with MPI can not be invoked by several MATLAB parallel threads. The MPI of MATLAB conflicts with the MPI of Elmer.
Hence, I re-install the Elmer version without MPI, it works.

BR
Jenwel
by Jenwel
15 Oct 2017, 10:59
Forum: HPC
Topic: Can I open more than one ElmerSolver simultaneously in a PC?
Replies: 3
Views: 1910

Re: Can I open more than one ElmerSolver simultaneously in a PC?

Hi Peter, Thank you again for your response. I have opened the matlabpool as: matlabpool 3 and "parfor" for my loop. The ElmerSolver is invoked in my m file of MATLAB as: [status, results]= system(strcat('ElmerSolver case_',num2str(i),'.sif'),'-echo'); I can find that additional 3 threads of MATLAB ...
by Jenwel
14 Oct 2017, 13:51
Forum: HPC
Topic: Can I open more than one ElmerSolver simultaneously in a PC?
Replies: 3
Views: 1910

Can I open more than one ElmerSolver simultaneously in a PC?

Hi dear Elmer designers, I want to optimize the electrical machine with Elmer. Thus, many models with different shape and size should be calculated by Elmer. I have tried the Elmer and MPI for parallel computation, but it solves even slower than only using a single CPU core for my model. Now, I can ...
by Jenwel
15 Sep 2017, 16:15
Forum: ElmerPost
Topic: How to output user defined variable to the vtu file?
Replies: 23
Views: 3696

Re: How to output user defined variable to the vtu file?

Hi, Peter

I want to ask that how can I obtain the area of each element in "CalcFields.F90"? Is there a variable that denotes the area of the element, in m^2 for the 2-D element?

Thank you in advance!

BR
Jenwel
by Jenwel
09 Sep 2017, 09:17
Forum: ElmerPost
Topic: How to output user defined variable to the vtu file?
Replies: 23
Views: 3696

Re: How to output user defined variable to the vtu file?

Hi, Peter Thank you so much for the answers! I understand now! I revised the code as: DO i = 1, GetNOFActive() Element => GetActiveElement(i) Bnode1 = sqrt(EL_MFD % Values(EPerm(Element % DGIndexes(1)) * 3 - 2)**2 + & EL_MFD % Values(EPerm(Element % DGIndexes(1)) * 3 - 1)**2) Bnode2 = sqrt(EL_MFD % ...
by Jenwel
08 Sep 2017, 15:59
Forum: ElmerPost
Topic: How to output user defined variable to the vtu file?
Replies: 23
Views: 3696

Re: How to output user defined variable to the vtu file?

Hi ! OMG, after I read the data in the mesh document of my model, I realized that all the elements are divided into TWO main categories, the active elements and boundary elements. In the file "mesh.elements" and "mesh.boundary", I found the number of active elements is 24518, the number of boundary ...
by Jenwel
08 Sep 2017, 14:22
Forum: ElmerPost
Topic: How to output user defined variable to the vtu file?
Replies: 23
Views: 3696

Re: How to output user defined variable to the vtu file?

Hi I found the codes in "CalcFields" DO i = 1, GetNOFActive() Element => GetActiveElement(i) n = GetElementNOFNodes() np = n*pSolver % Def_Dofs(GetElementFamily(Element),Element % BodyId,1) nd = GetElementNOFDOFs(uSolver=pSolver) CALL GetElementNodes( Nodes ) BodyId = GetBody() Material => GetMateri...
by Jenwel
08 Sep 2017, 14:13
Forum: ElmerPost
Topic: How to output user defined variable to the vtu file?
Replies: 23
Views: 3696

Re: How to output user defined variable to the vtu file?

Hi Peter, That's the model I fitted into "CalcFields" now. Your codes basically agree with mine, except several variable names are different. :D Now, the elemental loss can be solved. But the elements in air gap are also calculated by corresponding B field value, which is not expected. Actually, the...
by Jenwel
08 Sep 2017, 10:53
Forum: ElmerPost
Topic: How to output user defined variable to the vtu file?
Replies: 23
Views: 3696

Re: How to output user defined variable to the vtu file?

Hi, Peter Now I have calculated the elemental B field. I think maybe I can only calculate the core loss of the active elements. In the solver "MagnetoDynamicsCalcFields", I use GetNOFActive() to know the number of all active elements is 24518. But the number of total elements is 76602. Can I get the...
by Jenwel
05 Sep 2017, 16:11
Forum: ElmerPost
Topic: How to output user defined variable to the vtu file?
Replies: 23
Views: 3696

Re: How to output user defined variable to the vtu file?

Hi, Peter Thank you for the instruction. I agree that the fitting is not the best thing. I found it difficult to programme a new solver, so I add the suboutine in the "CalcFields.F90". Now the elemtal DG field can be solved at first, as shown below: CoreLoss_ElementField.jpg But, it is weird that th...