Salome: Elmer-plugin available
-
- Posts: 2362
- Joined: 25 Jan 2019, 01:28
- Antispam: Yes
Re: Salome: Elmer-plugin available
In the first one the PATH variable is not set so the operating system does not know where to find ELmerGrid.
The second one is usually do to the file not existing, or you do not have read privilege to it.
The second one is usually do to the file not existing, or you do not have read privilege to it.
Re: Salome: Elmer-plugin available
Hi Kevinarden,kevinarden wrote: ↑24 Apr 2021, 13:36 In the first one the PATH variable is not set so the operating system does not know where to find ELmerGrid.
The second one is usually do to the file not existing, or you do not have read privilege to it.
I think I have set up the path variable. I have reinstall Elmer by adding it to path. Still same error. Thanks.Could you please take a look at the attachment?
- Attachments
-
- ElmerGrid.JPG (70.78 KiB) Viewed 5102 times
-
- Posts: 2362
- Joined: 25 Jan 2019, 01:28
- Antispam: Yes
Re: Salome: Elmer-plugin available
Yes you have ELMERHOME system variable set but that doesn't make it part of your PATH system variable. You need to add $ELMERHOME to the PATH system variable.
Re: Salome: Elmer-plugin available
Sorry to bother you. But I have set the path system variable, still not work...kevinarden wrote: ↑24 Apr 2021, 19:40 Yes you have ELMERHOME system variable set but that doesn't make it part of your PATH system variable. You need to add $ELMERHOME to the PATH system variable.
- Attachments
-
- ElmerGrid2.JPG (95.13 KiB) Viewed 5092 times
-
- Posts: 2362
- Joined: 25 Jan 2019, 01:28
- Antispam: Yes
Re: Salome: Elmer-plugin available
Hi Kevinarden,kevinarden wrote: ↑25 Apr 2021, 13:53 Perhaps that is not the installation path.
https://www.youtube.com/results?search_ ... tall+elmer
Thank you very much for your sharing. I go through the installation steps again. It seems no problem. And the problem should be the folder where my created files are saved. Salome has problems reading files or saving files in google drive or ONEDRIVE when using the Elmer plugin. After I change the saving path, Elmer simulation through Salome works.
However, I used STL file as geometry and tried to output resistance in statcurrent solver by clicking "calculate Joule heating" to be true. No resistance output in the python console. I have tried several times, still no resistance output.Later, I tried STEP file, everything works out. I guess Salome or Elmer prefers STEP file... Is this case? Thanks.
-
- Posts: 2362
- Joined: 25 Jan 2019, 01:28
- Antispam: Yes
Re: Salome: Elmer-plugin available
Yes step is preferred because it can contain solid geometry. I believe stl file is only surface geometry.
Re: Salome: Elmer-plugin available
I have figured it out. Salome can build solid from STL file in geometry module. Then everything works fine. Thank you.kevinarden wrote: ↑26 Apr 2021, 18:52 Yes step is preferred because it can contain solid geometry. I believe stl file is only surface geometry.
Re: Salome: Elmer-plugin available
Hello,
I have been able to run statcurrent solver alone. But when I run simulation with linear elasticity and statcurrent together, the python console in Salome returns the following error. Does anyone know why? Thanks.
Tryphena
when I open the Lua file, line 57-58 writes:
I have been able to run statcurrent solver alone. But when I run simulation with linear elasticity and statcurrent together, the python console in Salome returns the following error. Does anyone know why? Thanks.
Tryphena
Code: Select all
MAIN: Reading Model: C:\Users\...\case.sif
Caught LUA error:...0-Release/share/elmersolver/lua-scripts/defaults.lua:58: r
LoadInputFile: Scanning input file: C:\Users
Code: Select all
function readsif(fname)
local f = assert(io.open(fname), 'r')
Re: Salome: Elmer-plugin available
I have tried using the same module in Salome. Running stat-current solver does not have any error. But running the linear elasticity solver in Salome has errors. I also run the linear elasticity solver in Elmer directly, no error. I think the salome plugin has some problems.
Someone point out there is a typo in the lua file.
should be
After I changed that, the error becomes:
Is this related with the fname definition?
Thanks.
Someone point out there is a typo in the lua file.
Code: Select all
assert(io.open(fname), 'r')
Code: Select all
assert(io.open(fname, 'r'))
After I changed that, the error becomes:
Code: Select all
ELMER SOLVER (v 9.0) STARTED AT: 2021/05/02 15:54:31
ParCommInit: Initialize #PEs: 1
MAIN:
MAIN: =============================================================
MAIN: ElmerSolver finite element software, Welcome!
MAIN: This program is free software licensed under (L)GPL
MAIN: Copyright 1st April 1995 - , CSC - IT Center for Science Ltd.
MAIN: Webpage http://www.csc.fi/elmer, Email elmeradm@csc.fi
MAIN: Version: 9.0 (Rev: Release, Compiled: 2021-01-22)
MAIN: Running one task without MPI parallelization.
MAIN: Running with just one thread per task.
MAIN: Lua interpreted linked in.
MAIN: =============================================================
LoadInputFile: Reading only "Run Control" section
MAIN:
MAIN:
MAIN: -------------------------------------
MAIN: Reading Model: C:\Users\Downloads\ElmerLocal\beam\case.sif
Caught LUA error:...0-Release/share/elmersolver/lua-scripts/defaults.lua:58: C:Users DownloadsElmerLocaeamcase.sif: Invalid argument
LoadInputFile: Scanning inpu
Code: Select all
-- This (create_new_fun) will create unique names for functions with given
-- prefix and body used to transform `REAL LUA "..."` to function with body
-- matching `...`. Uses global variable ELMER_FUNCTION_COUNTER to ensure
-- uniqueness of the name
function create_new_fun(prefix, body)
-- Do naive string sanitization
local sane_prefix = string.gsub(prefix, "{", "_OCB_")
local sane_prefix = string.gsub(sane_prefix, "}", "_CCB_")
local sane_prefix = string.gsub(sane_prefix, " ", "_")
local sane_prefix = string.gsub(sane_prefix, "%(", "_ORB_")
local sane_prefix = string.gsub(sane_prefix, "%)", "_CRB_")
local sane_prefix = string.gsub(sane_prefix, "%[", "_OSB_")
local sane_prefix = string.gsub(sane_prefix, "%]", "_CSB_")
if ELMER_FUNCTION_SUFFIX_TABLE == nil then
ELMER_FUNCTION_SUFFIX_TABLE = {}
end
if ELMER_FUNCTION_SUFFIX_TABLE[sane_prefix] == nil then
ELMER_FUNCTION_SUFFIX_TABLE[sane_prefix] = 1
else
ELMER_FUNCTION_SUFFIX_TABLE[sane_prefix] = ELMER_FUNCTION_SUFFIX_TABLE[sane_prefix] + 1
end
local counter = ELMER_FUNCTION_SUFFIX_TABLE[sane_prefix]
local underscored, num_space = string.gsub(sane_prefix, " ", "_")
local fname = underscored .. "_" .. counter
local codestr = "function " .. fname .. "() return " .. body .. " end"
local code = loadstring(codestr)
code()
return fname
end