Questions tagged [acegen]

AceGen is a Mathematica package for automatic code generation, focused on finite element method subroutines.

Filter by
Sorted by
Tagged with
0 votes
1 answer
19 views

AceGen/AceFEM: Divergence in a term, that should be equal to zero

I have a problem concerning the order of the evaluation of the AceFEM parameters. My AceGen Element contains, among many others, an expression of the form B (aa - bb/(cc Exp[dd w^2] + ff)) with B, aa, ...
1 vote
1 answer
71 views

Integrate doesn't give a result for non-linear functions

I use Acegen for Finitie Element formulation that gives out residuals and tangents by taking in the field values as inputs. For this in my residual formulation I need to integrate a nonlinear term ...
  • 13
2 votes
1 answer
61 views

How to extract gauss coordinates in AceGen/ AceFEM?

I am trying to implement a 2D turbulence problem with the model of Spalart-Allmaras. Therefore, I need to extract the global gauss coordinates to define parameter 'd' which stands for the distance to ...
3 votes
1 answer
54 views

AceGen/ AceFEM: Wrong number of nodes?

I am trying to create an element T1 (linear triangle) to solve the steady, incompressible Navier-Stokes equations. Therefore, my SMSTemplate command reads as follows ...
1 vote
1 answer
74 views

Numbering of auxiliary symbols in AceGen generated code

I have a general question regarding the numbering of auxiliary symbols in AceGen. Consider this example (taken from the AceGen manual, only the language is switched to ...
3 votes
1 answer
93 views

AceFEM higher order elements fail basic test

I was trying to perform a simple test, as some results that we obtained from AceFEM were not matching with the results we obtained from other methods. Here, I have a simple biaxial test on a cube of ...
  • 33
0 votes
0 answers
102 views

How to modify global stiffness matrix before solving it by SMTNewtonIteration[]?

I'm trying to use the Model Order Reduction technique to reduce the stiffness matrix in AceFEM/AceGen. But there is a problem with the manipulation of the global stiffness before solving it by ...
3 votes
1 answer
93 views

Dynamic allocation of memory within the given array

Let say a have an array of known dimension array={-1, 3, 6, -5, -6, 12} and indexes where the negative numbers appear is not known in advance. I want to create an array for which elements satisfy ...
  • 33
4 votes
1 answer
115 views

Is it possible to remove an element during computation in AceFEM?

The title says it all. I know there have been a lot of enhancements in the recent versions of AceGen/AceFEM. I would like to know if there is a possibility of removing an element during computation (...
  • 1,243
1 vote
1 answer
83 views

Different boundary conditions

I have a problem regarding the definition of multiple boundary conditions in AceFEM. I am dealing with coupled problem simulations (displacement and magnetic potential) and therefore I have to apply ...
  • 634
1 vote
2 answers
119 views

Strange visualization for H2S element

I am experiencing a strange behavior in the postprocessing of H2S element. I have provided a MWE below. Reference: H2 element ...
  • 1,243
4 votes
1 answer
71 views

Package AceFEM error: cannot be automatically installed

I have a problem to perform the package AceFEM in Mathematica 12.0.0.0 for Mac (software: macOS Monterey Version 12.4 | processor: 1,8 GHz Dual-Core Intel Core i5). I downloaded the newest AceGen and ...
3 votes
1 answer
104 views

How to stop simulation after a given model variable achieves certain value?

I would like to stop my simulation after a given model variable (say, plastic strain averaged over entire domain) achieves a given threshold value. Do you know how to do it? I'm supplying the MWE. How ...
1 vote
1 answer
31 views

Number of input parameters (nargin equivalent) for AceGen

Is there an equivalent to the MATLAB parameter nargin that can be used in AceGen? For example, consider a function that takes in two vectors and an optional scalar. ...
0 votes
0 answers
74 views

Clear AceFEM memory

I am doing multiple AceFEM simulations by invoking the mathematica notebooks using NotebookEvaluate. After a number of simulations everything breaks down, I suppose the problem is too much memory ...
2 votes
1 answer
112 views

Calculate ArcTan in AceGen

I am working on a material model SMSStandardModule["Tangent and residual"] in AceGen and want to use command ToSphericalCoordinates for but AceGen is ...
0 votes
1 answer
272 views

AceGen/ AceFem on new M1 Mac

Apple has updated its processors some time ago and I am curious if AceGen/ AceFem are compatible with this latest generation of the Apple M1 processors? And maybe someone can already report on the ...
  • 634
1 vote
1 answer
173 views

AceFEM GlobalTask

I wonder whether there is any way to add data directly to the linear equation system in AceFEM. I´m having external data that I want to superimpose to the linear system before solving it. The targeted ...
2 votes
1 answer
87 views

AceFEM: MIEL example aborts for many load steps

I am currently using AceFEM version 7.303 and Mathematica 12.2 but had the same problem with other versions before. My laptop as well as the server I use work with Linux. When I run the example "...
4 votes
1 answer
171 views

3D meshing of cyllindrical domain into hexahedral elements

I need a solution for generating a hexahedral mesh for a cyllindrical domain in Mathematica/AceFEM. Ideally, it should be close to cyllindrical symmetry not very far from the center. The best option ...
4 votes
1 answer
101 views

AceGen SMSFreeze[] function

I'm quite new to AceGen and I'm not getting the function of SMSFreeze[]. The manual writes the following: SMSFreeze[symbol,{exp1 ,exp2 ,{exp3…}..},allOptions] create data objects that represent ...
3 votes
2 answers
112 views

AceGen: Keep full symmetric matrix

I am using AceGen to compile a subroutine for MATLAB. The subroutine involves several steps of linear algebra that yields a number of symmetric matrices. However, when using AceGen there seems to be ...
5 votes
1 answer
203 views

AceFEM: Divergence in iterative procedure (Newton-Raphson) for fine meshes

I am trying to model a problem of a nearly incompressible $10~\rm{m} \times 2~\rm{m}$ beam with a uniformly distributed end load. The beam has a Young's modulus of $200~\rm{Pa}$ and a Poisson's ratio ...
2 votes
2 answers
148 views

AceFem Error in SMTShowMesh

I consider for a calculation a sphere embedded within a matrix. To plot the results and especially the behavior around the spherical inclusion I want to "cut" through the matrix. That seems ...
  • 634
0 votes
1 answer
126 views

Running AceGen / AceFEM on a cluster

Did anyone here ever sucessfully installed AceGen/AceFEM on a cluster? Does anyone has experience with performing AceFEM simulations on a cluster system? Is it possible at all?
5 votes
1 answer
153 views

Parallel/Multi-thread element code generation using AceGen

I am using AceGen to generate source code for finite element simulations in AceFEM. I have elements with a very large number of vertices/degrees of freedom which can take a very long time to compile. ...
1 vote
2 answers
241 views

Print global stiffness matrix in AceFEM

I have a 2D linear elastic simulation in AceFEM and for post-processing purposes I would like to print the global stiffness matrix and global displacement vector. I am able to get the global x and y ...
0 votes
1 answer
110 views

initial condition in finite element method

I want to apply the initial condition below to the linear element c(x; 0) = sin(10πx); if x in [0; 0:1] and c(x; 0) = 0; if x in [0:1; 1]. I tried like ...
10 votes
1 answer
183 views

Meshing an inclusion in an inclusion

I do have FEM mesh related question. I am trying to mesh some inclusion from a png file using ToElementMesh. Thats working quite nicely even for more complex structures. ...
  • 634
2 votes
0 answers
116 views

Help with script for running AceGen generated routine in ABAQUS

I am using the below configuration to run a AceGen-generated viscoelastic element in Abaqus. Abaqus version: ABAQUS 6.14-6, OS: Windows 10, Visual studio: 2013, Fortan compiler: Intel Fortran compiler ...
1 vote
0 answers
35 views

AceGen set up for Linux [closed]

I would like to run Abaqus User Element (UEL) subroutine generated by AceGen. I have Abaqus 6.14 coupled with gfortran compiler in Linux Ubuntu operating system. How do I configure ABAQUSCompile.bat ,...
3 votes
0 answers
112 views

Coupling AceGen with Abaqus

I am using Abaqus for nonlinear FEA and, I have generated a UEL (User defined Element Subroutine)using AceGen. But the .log file generated by Abaqus shows a syntax error when I try to run a job using ...
16 votes
2 answers
566 views

3D Inclusion with structured mesh and coarse and arbitrary matrix

I am wondering if there is a simple way to define a structured 3D mesh (inclusion) like e.g. that and surround it with a corse and unstructured Matrix. It should be possible to refine both more or ...
  • 634
2 votes
0 answers
1k views

General:: Exp[-717.401] is too small to represent as a normalized machine number; precision may be lost

I am solving pde. For the post processing bvp, there is solution given in output which is the solution from mathematica version 10.0.1. Output from above in mathematica 10.0.1 is, But when the similar ...
3 votes
1 answer
93 views

How to obtain eigenvectors in AceGen

I'm trying to obtain eigenvectors of a 3D plastic stretch tensor $C_p$. There is no SMSEigenvectors function, so I tried with ...
  • 51
2 votes
0 answers
45 views

AceFEM MacOS not responding

I just upgraded to v7.114 of AceFEM running on MacOS 10.15.5 and Mathematica 12.0.0.0. I was running v7.101 without a problem. AceGEN seems to work but all AceFEM code starts but does nothing. The ...
  • 21
2 votes
2 answers
209 views

LinkOpen::linke: Specified file is not a MathLink executable. in AceGen

I tried to run AceGen/AceFEM on my Mac(10.15.5). I installed Mathematica (12.1.0.0) successfully and also the latest version of the AcePackage (7.113). The installation of the AcePackage is successful,...
  • 23
7 votes
1 answer
280 views

Deformation following loads in AceFEM/AceGen

I have a simple 2D finite element problem comprising a unit domain that is fully constrained on the left, vertically constrained on the bottom and subject to a uniformly distributed load at the top. ...
11 votes
1 answer
910 views

The performance of AceFEM in Intel Processor VS. AMD Processor

I am going to buy a new powerful desktop that I will use to run finite element simulations using AceFEM. I found out that the new AMD Ryzen 9 3950X obtained more points in the CPU Passmark benchmark ...
  • 1,243
2 votes
1 answer
107 views

Application of spatially varying boundary conditions and source term in AceFEM

I am trying to model a simple 2D steady state heat conduction problem using automatically generated Q2 elements. The problem consists of a square domain with prescribed temperatures along the bottom ...
1 vote
0 answers
68 views

Generating the tetrahedral element with nodal quadrature rule

By default, we do not have the possibility of using linear Tetrahedral elements with nodal quadrature in AceGen/AceFEM. But I suppose that there should be a way to construct it through the ...
  • 1,243
2 votes
1 answer
68 views

SMSPrint causes error in FE code

I am using Mathematica 12.0, AceGen version 7.101. I have not detected this problem when I was using older versions of both, but I've had no need to use the ...
  • 464
1 vote
1 answer
104 views

Quick access to the numerical integration coordinates and weights?

How can one simply access the numerical integration coordinates and weights for a given integration code (e.g. 23) without generating the code itself? Is there some command for it? Something similar ...
3 votes
1 answer
59 views

AceFEM Solver Pauses/Freezes

I have been running many simulations using AceGen/AceFEM and I usually leave them to run while I work on something else. However, every so often I notice that the solver seems to pause/freeze on a ...
2 votes
1 answer
223 views

How to change boundary conditions during AceFEM analysis?

I'm trying to prestress a sample by a compressive strain of 10 percent and then stretch it by 30 percent. The way I intend to do this is apply the prestress in one step and then have the code run and ...
1 vote
0 answers
40 views

Error in SMTRestart (Mathematica 12.0 + Ace 6.804)

I've recently upgraded Mathematica to version 12.0 and I'm using Ace 6.804 Windows (12 Jul 16). Now I have problems with command SMTRestart[]. I tested this using build-in example: AceGen -> Help -> ...
  • 43
0 votes
1 answer
58 views

Can I convert my SMTShowMesh Object into a mathematica graphics object in AceFem?

My question is related to a string of questions Ive asked in the last few days. I'm trying to superimpose a vectorplot on a3D plot that I've produced on AceFem using the SMTShowMesh Command. I'm ...
2 votes
1 answer
111 views

Plotting fibre direction at each node

I was wondering if there was a way to plot the direction vector of a fibre family at each node in AceGen/AceFem? Below is an example of exactly what I want to do but I do not know how to recreate it. ...
4 votes
2 answers
198 views

Derivatives of function with 20 variables with respect to each variable

I want to find the derivative of a function with 20 variables and arrange it in a 20 by 1 vector. Si[a,b,c,d,.....20 variables] is a function. Is there a simple command to find the first derivative ...
0 votes
0 answers
43 views

AceFem keeps crashing immediately after plotting

I hope everybody is having a great day/night. I have generated an element on AceGen in which now I am running an analysis on through AceFem. Upon the evaluation of the AceFem notebook, the plot runs ...