Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - sg

Pages: [1] 2
1
Installation / Conan in the CI
« on: August 22, 2023, 08:15:43 AM »
It looks like conan is 'broken' in the CI scripts.   appveyor.yml appears to be getting the latest 2.0.9 version of conan, which I think changes 'conan user' to 'conan remote login'  (or something like that).  The appveyor.yml scripts should be updated to work with the new conan 2.0.x versions or downgrade the pip install conan to something like pip install conan==1.60.2 or whatever was the last working version.

2
Uncertainty Quantification (quoFEM) / Custom Analysis Engine
« on: October 04, 2022, 05:53:34 AM »
If one wants to use a custom analysis engine but on DesignSafe, so not on one's local computer, what does one have to do?

3
When trying to run example 2, the code throws an error with respect to Dakota.  Is there something special that needs to be done in the set up?  Here is the log file:

Code: [Select]
21:29:12 - Welcome to quoFEM
21:29:18 - Loading example Forward Propagation - OpenSeesPy
21:29:18 -  - reading input file /Users/sg/Desktop/quoFEM.app/Contents/MacOS/Examples/qfem-0002/src/input.json
21:29:18 - Loading Example file. Wait till Done Loading Example appears before progressing.
21:29:18 - Loading File .. /Users/sg/Desktop/quoFEM.app/Contents/MacOS/Examples/qfem-0002/src/input.json
21:29:18 - Done Loading File
21:29:18 - Done Loading Example.
21:29:51 - Setting up temporary directory.
21:29:51 - Gathering files to local workdir.
21:29:51 - 
21:29:51 - SetUp Done .. Now starting application
21:29:51 - Starting the analysis. This may take awhile!
21:29:52 -
qWHALE workflow

System Information:
  local time zone: PDT
  start time: 2022-10-03T21:29:52
  python: 3.9.13 (main, May 24 2022, 21:28:12)
[Clang 12.0.0 (clang-1200.0.32.29)]
  numpy: 1.21.2
  pandas: 1.3.4

--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
21:29:52 Started running the workflow script
         -----------------------------------------------------------------------
21:29:52 Inputs provided:
         workflow input file: /Users/sg/Documents/quoFEM/LocalWorkDir/tmp.SimCenter/templatedir/scInput.json
         application registry file: /Users/sg/Desktop/quoFEM.app/Contents/MacOS/applications/Workflow/WorkflowApplications.json
         run type: runningLocal
         -----------------------------------------------------------------------
21:29:52 Parsing application registry file
         Loading the json file...
           OK
         Loading default values...
           OK
         Collecting application data...
           OK
         Available applications:
           FEM : OpenSees
           FEM : OpenSeesPy
           FEM : SurrogateGP
           FEM : FEAPpv
           FEM : Custom
           FEM : MultipleModels
           UQ : Dakota-UQ
           UQ : SimCenter-UQ
           UQ : UCSD-UQ
           UQ : Dakota-FEM
           UQ : Dakota-UQ1
           UQ : CustomUQ
         Successfully parsed application registry
         -----------------------------------------------------------------------
21:29:52 Parsing workflow input file
         Loading the json file...
           OK
         No units specified; using Standard units.
         Missing output type specification, using default settings.
{}
         The following workflow defaults were overwritten:
           workflowInput: scInput.json
         Run dir : /Users/sg/Documents/quoFEM/LocalWorkDir/tmp.SimCenter
         Local applications dir : /Users/sg/Desktop/quoFEM.app/Contents/MacOS
         Remote applications dir : /Users/sg/Desktop/quoFEM.app/Contents/MacOS
         Reference dir : None
         
         Parsing the requested list of applications...
         
         Requested workflow:
           FEM : OpenSeesPy
           UQ : Dakota-UQ
         
         Successfully parsed workflow inputs
         -----------------------------------------------------------------------
21:29:52 Initializing the simulation directory
         Simulation directory successfully initialized.
         -----------------------------------------------------------------------
21:29:52 Creating files with random variables
         
         Running FEM app

"/Users/sg/Desktop/quoFEM.app/Contents/MacOS/applications/performFEM/OpenSeesPy/createOpenSeesPyDriver" "/Users/sg/Documents/quoFEM/LocalWorkDir/tmp.SimCenter/templatedir/scInput.json" "runningLocal" "MacOS" "driver"

Output:



         Successfully Created Driver File for Workflow.
         -----------------------------------------------------------------------
21:29:52 Running response simulation
FMK COMMAND: "/usr/local/opt/python@3.9/bin/python3.9" "/Users/sg/Desktop/quoFEM.app/Contents/MacOS/applications/performUQ/dakota/DakotaUQ.py" "--workflowInput" "scInput.json" "--driverFile" "driver" "--workflowOutput" "EDP.json" "--runType" "runningLocal"
         Simulation command:

"/usr/local/opt/python@3.9/bin/python3.9" "/Users/sg/Desktop/quoFEM.app/Contents/MacOS/applications/performUQ/dakota/DakotaUQ.py" "--workflowInput" "scInput.json" "--driverFile" "driver" "--workflowOutput" "EDP.json" "--runType" "runningLocal"

Output:

P 30 20 2 2EVAL CONCURRENCY: 16
CWD: /Users/sg/Documents/quoFEM/LocalWorkDir/tmp.SimCenter/templatedir
running Dakota:  dakota -input dakota.in -output dakota.out -error dakota.err


         Response simulation finished successfully.
         -----------------------------------------------------------------------

21:29:52 - Analysis done
21:29:52 - Error Running Dakota: Error: cannot open results file "workdir.1/results.out" for evaluation 1
21:29:52 - Analysis complete

4
Uncertainty Quantification (quoFEM) / Running python analysis
« on: October 04, 2022, 04:26:20 AM »
Is there a reason that to run a Python analysis, one has to select OpenSeesPY as the analysis engine?  This does not seem to make sense?  Should the menu open perhaps read Python Script?

5
Uncertainty Quantification (quoFEM) / Example page error
« on: October 02, 2022, 08:03:05 AM »
On the documentation page
https://nheri-simcenter.github.io/quoFEM-Documentation/common/user_manual/examples/desktop/qfem-0022/README.html
there are references to
Code: [Select]
../../../../../_images/FEM.pngand
Code: [Select]
../../../../../_images/RV.pngthat are not loading properly.

6
I was trying to follow the documentation on adding a custom UQ engine at

https://nheri-simcenter.github.io/quoFEM-Documentation/common/user_manual/usage/desktop/Configuring_CustomUQ.html#lblcustomuq

and tried to follow the "linked here" link in this section
Code: [Select]
As an example, UQpy has been implemented in the customized backend–the source code for the customized UqRunner class can be found in the SimCenterBackendApplications repository, linked here, and is also availble in the {Path to quoFEM app contents}/applications/performUQ/other directory.but the link is broken.

7
General Questions / Job owner
« on: March 12, 2021, 11:27:43 PM »
When jobs are run at TACC via the SimCenter apps, what username are they run under?  i.e., if one logs into to stampede2 and runs squeue -u XXX, what should XXX be to see the job?

8
Regional Hazard Simulation (R2D, rWhale) / Export to PDF
« on: March 12, 2021, 11:02:26 PM »
Two comments on the Export to PDF button:

(1) It silently writes the file even when it already exists -- clobbering existing files :(

(2) The box for the file name is labeled "Export folder:" as opposed to export file.  If I used a folder name, would it silently clobber my
whole folder?

9
Regional Hazard Simulation (R2D, rWhale) / Empty results
« on: March 12, 2021, 08:05:59 AM »
When trying to run example 1 on Design safe, the job runs.  When retrieving the results the output window shows

Code: [Select]
Contacting designsafe to Get Job Details of 7d8908ea-6cdc-45cb-8dd4-7c52c43ef455-007

Contacting designsafe to download remote file inputRWHALE.json

Successfully downloaded file

Contacting designsafe to download remote file input_data.zip

Successfully downloaded file

Contacting designsafe to download remote file hdf.zip

Successfully downloaded file

However a popup appear which says "The results folder is empty" :(

10
Regional Hazard Simulation (R2D, rWhale) / Output log for remote runs
« on: March 12, 2021, 07:56:03 AM »
When one submits for a run on DesignSafe, it would be nice if the output window provided an instruction to open
the GET from DesignSafe window.  Additionally, it is not clear if the GET from DesignSafe window refreshes itself
automatically or not, a short instruction in the output window to tell the user to click on the job to refresh would be good.

11
Regional Hazard Simulation (R2D, rWhale) / New DMG run errors
« on: March 12, 2021, 04:16:41 AM »
I downloaded the latest DMG, placed it in my ~/Applications folder and tried to run it.  It seems to through some type of python error.  Here is the program output:
Code: [Select]
Loading example E2 - MDOF Building Response

This example uses ground motions from the 2018 earthquake in Anchorage, AK, to characterize the response of buildings with an idealized MDOF building model through story-level Engineering Demand Parameters (EDP). Exploiting the refinement in EDPs, a HAZUS-based story-level assessment is employed to evaluate the performance of 10 buildings. 


Loading Example file. Wait till Done Loading appears before progressing.

Done loading. Click on the 'RUN' button to run an analysis.

Setting up temporary directory.

Gathering files to local workdir.

Setup done. Now starting application.

Starting the anlysis. This may take awhile!

An error occurred in the Python script, the exit code is 1


Analysis complete with errors

12
Regional Hazard Simulation (R2D, rWhale) / Incorrect Python Command
« on: February 04, 2021, 05:58:37 PM »
Stevan here is the log from the R2D error once we forced the Preferences to point to my python 3.8

09:37:34.495 Debug: RESET_PREFERENCES ()
09:52:08.362 Debug: WorkflowAppWidget::statusMessage "Gathering Files to local workdir" ()
09:52:08.362 Debug: STATUS MESSAGE "Gathering Files to local workdir" ()
09:52:08.392 Debug: WorkflowAppWidget::errorMessage "" ()
09:52:08.392 Debug: ERROR MESSAGE "" ()
09:52:08.409 Debug: WorkflowAppR2D is changinging subDir to input_data ()
09:52:08.427 Debug: :HI DakotaINputSampling ()
09:52:08.427 Debug: WorkflowAppWidget::statusMessage "SetUp Done .. Now starting application" ()
09:52:08.427 Debug: STATUS MESSAGE "SetUp Done .. Now starting application" ()
09:52:08.428 Debug: RunWidget::setupForRunApplicationDone ()
09:52:08.428 Debug: RUNTYPE "runningLocal" ()
09:52:08.429 Debug: SCRIPT:  "/Users/sg/Junk/R2D.app/Contents/MacOS/applications/Workflow/R2DTool_workflow.py" ()
09:52:08.429 Debug: REGISTRY:  "/Users/sg/Junk/R2D.app/Contents/MacOS/applications/Workflow/WorkflowApplications.json" ()
09:52:08.430 Debug: Running the UQ engine ...  ()
09:52:08.430 Debug: WorkflowAppWidget::statusMessage "Running the UQ engine ... " ()
09:52:08.430 Debug: STATUS MESSAGE "Running the UQ engine ... " ()
09:52:08.434 Debug: PATH:  "/Users/sg/Junk/R2D.app/Contents/MacOS/applications/dakota/bin;/Users/sg/Junk/R2D.app/Contents/MacOS/applications/opensees/bin;/usr/bin:/bin:/usr/sbin:/sbin" ()
09:52:08.434 Debug: PYTHON_PATH "/Users/sg/Junk/R2D.app/Contents/MacOS/applications/dakota/share/Dakota/Python;" ()
09:52:08.434 Debug: PYTHON COMMAND "source $HOME/.bash_profile; export PATH=$PATH:/Users/sg/Junk/R2D.app/Contents/MacOS/applications/opensees/bin:/Users/sg/Junk/R2D.app/Contents/MacOS/applications/dakota/bin; \"/usr/local/Cellar/python@3.8/3.8.6_1/bin/python3\" \"/Users/sg/Junk/R2D.app/Contents/MacOS/applications/Workflow/R2DTool_workflow.py\"  \"/Users/sg/Documents/R2D/LocalWorkDir/tmp.SimCenter/inputRWHALE.json\" --registry \"/Users/sg/Junk/R2D.app/Contents/MacOS/applications/Workflow/WorkflowApplications.json\" --referenceDir \"/Users/sg/Documents/R2D/LocalWorkDir/tmp.SimCenter/input_data\" -w \"/Users/sg/Documents/R2D/LocalWorkDir/tmp.SimCenter/Results\"" ()
09:52:29.577 Debug: "/Users/sg/Documents/R2D/LocalWorkDir/tmp.SimCenter/Results" ()
09:52:29.578 Debug: PelicunPostProcessor:  "/Users/sg/Documents/R2D/LocalWorkDir/tmp.SimCenter/Results" ()
09:52:29.578 Debug: FILES IN FOLDER:  ("inputRWHALE.json") ()
09:52:36.785 Debug: WorkflowAppWidget::statusMessage "Analysis complete" ()
09:52:36.786 Debug: STATUS MESSAGE "Analysis complete" ()
09:55:32.394 Debug: WorkflowAppWidget::statusMessage "Gathering Files to local workdir" ()
09:55:32.395 Debug: STATUS MESSAGE "Gathering Files to local workdir" ()
09:55:32.417 Debug: WorkflowAppWidget::errorMessage "" ()
09:55:32.418 Debug: ERROR MESSAGE "" ()
09:55:32.461 Debug: WorkflowAppR2D is changinging subDir to input_data ()
09:55:32.476 Debug: :HI DakotaINputSampling ()
09:55:32.476 Debug: WorkflowAppWidget::statusMessage "SetUp Done .. Now starting application" ()
09:55:32.476 Debug: STATUS MESSAGE "SetUp Done .. Now starting application" ()
09:55:32.477 Debug: RunWidget::setupForRunApplicationDone ()
09:55:32.477 Debug: RUNTYPE "runningLocal" ()
09:55:32.477 Debug: SCRIPT:  "/Users/sg/Junk/R2D.app/Contents/MacOS/applications/Workflow/R2DTool_workflow.py" ()
09:55:32.477 Debug: REGISTRY:  "/Users/sg/Junk/R2D.app/Contents/MacOS/applications/Workflow/WorkflowApplications.json" ()
09:55:32.478 Debug: Running the UQ engine ...  ()
09:55:32.478 Debug: WorkflowAppWidget::statusMessage "Running the UQ engine ... " ()
09:55:32.478 Debug: STATUS MESSAGE "Running the UQ engine ... " ()
09:55:32.482 Debug: PATH:  "/Users/sg/Junk/R2D.app/Contents/MacOS/applications/dakota/bin;/Users/sg/Junk/R2D.app/Contents/MacOS/applications/opensees/bin;/usr/bin:/bin:/usr/sbin:/sbin" ()
09:55:32.482 Debug: PYTHON_PATH "/Users/sg/Junk/R2D.app/Contents/MacOS/applications/dakota/share/Dakota/Python;" ()
09:55:32.483 Debug: PYTHON COMMAND "source $HOME/.bash_profile; export PATH=$PATH:/Users/sg/Junk/R2D.app/Contents/MacOS/applications/opensees/bin:/Users/sg/Junk/R2D.app/Contents/MacOS/applications/dakota/bin; \"/usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/bin/python3.8\" \"/Users/sg/Junk/R2D.app/Contents/MacOS/applications/Workflow/R2DTool_workflow.py\"  \"/Users/sg/Documents/R2D/LocalWorkDir/tmp.SimCenter/inputRWHALE.json\" --registry \"/Users/sg/Junk/R2D.app/Contents/MacOS/applications/Workflow/WorkflowApplications.json\" --referenceDir \"/Users/sg/Documents/R2D/LocalWorkDir/tmp.SimCenter/input_data\" -w \"/Users/sg/Documents/R2D/LocalWorkDir/tmp.SimCenter/Results\"" ()
09:55:38.043 Debug: "/Users/sg/Documents/R2D/LocalWorkDir/tmp.SimCenter/Results" ()
09:55:38.043 Debug: PelicunPostProcessor:  "/Users/sg/Documents/R2D/LocalWorkDir/tmp.SimCenter/Results" ()
09:55:38.044 Debug: FILES IN FOLDER:  ("inputRWHALE.json") ()

13
Regional Hazard Simulation (R2D, rWhale) / Install problem
« on: February 04, 2021, 05:42:46 PM »
The pip3 install for nheri-simcenter failed for me:

Code: [Select]
Sanjays-MBP2020:~ sg$ pip3 install nheri-simcenter
Collecting nheri-simcenter
  Downloading nheri_simcenter-0.9.1-py3-none-any.whl (4.3 kB)
Collecting tqdm
  Downloading tqdm-4.56.0-py2.py3-none-any.whl (72 kB)
     |████████████████████████████████| 72 kB 4.2 MB/s
Collecting pandas<=1.1.5,>=1.1.0
  Downloading pandas-1.1.5-cp39-cp39-macosx_10_9_x86_64.whl (10.3 MB)
     |████████████████████████████████| 10.3 MB 20.7 MB/s
Collecting jpype1
  Downloading JPype1-1.2.1-cp39-cp39-macosx_10_9_x86_64.whl (379 kB)
     |████████████████████████████████| 379 kB 80.5 MB/s
Collecting sklearn
  Downloading sklearn-0.0.tar.gz (1.1 kB)
Collecting xlrd<=1.2.0
  Downloading xlrd-1.2.0-py2.py3-none-any.whl (103 kB)
     |████████████████████████████████| 103 kB 75.7 MB/s
Collecting tables
  Downloading tables-3.6.1.tar.gz (4.6 MB)
     |████████████████████████████████| 4.6 MB 83.6 MB/s
    ERROR: Command errored out with exit status 1:
     command: /usr/local/opt/python@3.9/bin/python3.9 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/9d/rzw8lm7100923j8xf9bllgpc0000gn/T/pip-install-ssk3fkux/tables/setup.py'"'"'; __file__='"'"'/private/var/folders/9d/rzw8lm7100923j8xf9bllgpc0000gn/T/pip-install-ssk3fkux/tables/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/9d/rzw8lm7100923j8xf9bllgpc0000gn/T/pip-pip-egg-info-epxvhxqs
         cwd: /private/var/folders/9d/rzw8lm7100923j8xf9bllgpc0000gn/T/pip-install-ssk3fkux/tables/
    Complete output (10 lines):
    /var/folders/9d/rzw8lm7100923j8xf9bllgpc0000gn/T/H5close9tul_kdb.c:2:5: error: implicit declaration of function 'H5close' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        H5close();
        ^
    1 error generated.
    * Using Python 3.9.0 (default, Nov 21 2020, 14:01:50)
    * USE_PKGCONFIG: True
    .. ERROR:: Could not find a local HDF5 installation.
       You may need to explicitly state where your local HDF5 headers and
       library can be found by setting the ``HDF5_DIR`` environment
       variable or by using the ``--hdf5`` command-line option.
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

14
Header on this board should be change to R2D due to the name change.

15
Wind Engineering (WE-UQ) / Does not build
« on: June 30, 2020, 09:34:13 PM »
I have installed OpenFoam (with the Docker container).  If I run wmake I get the following error

Code: [Select]
wmake
    ln: ./lnInclude
Making dependency list for source file digitalFilterFvPatchVectorField.C
Making dependency list for source file syntheticEddyFvPatchVectorField.C
wmkdepend: could not open 'triSurface.H' for source file 'syntheticEddy/syntheticEddyFvPatchVectorField.C': No such file or directory
Making dependency list for source file eddyIO.C
Making dependency list for source file eddy.C
g++ -std=c++11 -m64 -DOPENFOAM=1912 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3  -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-v1912/src/triSurface/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1912/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1912/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-v1912/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1912/src/OSspecific/POSIX/lnInclude   -fPIC -c eddy/eddy.C -o Make/linux64GccDPInt32Opt/eddy/eddy.o
In file included from /opt/OpenFOAM/OpenFOAM-v1912/src/OpenFOAM/lnInclude/Random.H:342:0,
                 from eddy/eddy.H:42,
                 from eddy/eddy.C:26:
/opt/OpenFOAM/OpenFOAM-v1912/src/OpenFOAM/lnInclude/RandomI.H: In member function 'Foam::scalar Foam::eddy::epsi(Foam::Random&) const':
/opt/OpenFOAM/OpenFOAM-v1912/src/OpenFOAM/lnInclude/RandomI.H:30:21: error: 'Foam::scalar Foam::Random::scalar01()' is private
 inline Foam::scalar Foam::Random::scalar01()
                     ^
In file included from eddy/eddy.H:233:0,
                 from eddy/eddy.C:26:
eddy/eddyI.H:32:28: error: within this context
     return rndGen.scalar01() > 0.5 ? 1 : -1;
                            ^
make: *** [Make/linux64GccDPInt32Opt/eddy/eddy.o] Error 1

Pages: [1] 2