The COMSOL API for Use with Java
COMSOL 6.4 API Changes
Cache Size Control
You can now use the following methods to control the cache size and clear the cache:
ModelUtil.clearCache(), which clears the memory and disk cache.
ModelUtil.setCacheMaxSize(long fileCache, long memoryCache): Set the maximum size used for caching.
getCacheMaxSizeMemory() returns, as a long data type, the maximum amount of memory in megabytes (MB) used for caching, for example, geometries, meshes, and rendering data.
getCacheMaxSizeDisk() returns, as a long data type, the maximum amount of disk in megabytes (MB) used in the temp area for caching, for example, geometries, meshes, and rendering data.
Measuring the Angle Between Two Edges
Use the getEdgeAngle method when measuring two edges that are either straight or adjacent to get the angle between them.