I got from the website:
I spent some time trying to resolve this error message when updating solution cell of system coupling block:
System
coupling run completed with errors. Additional information: Exception
originated from the noted participant when the coupling service
requested ChartableData->GetRootLevelName: Communication socket unexpectedly disconnected.
All
that needs to be done to eliminate this error is to change licensing
prefs from "Share a single license between applications when possible"
to "use a separate license for each application." To check the settings, in Workbench go: Tools>License Preferences... and the GUI will open.
This is mentioned in the System Coupling User's Guide (for v14.0), but they don't say how to check your preferences.
2012年11月16日星期五
2012年4月25日星期三
Prepare stl file with separated surface parts for snappyHexMesh
One of the way to get a stl file with separated surface parts:
1. Create geometry using Freecad and exported as stl file;
2. Import the stl file to EnGrid, define surfaces, view the boundary code by name, then save each surface as a vtu file;
3. Open each vtu file to EnGrid, then export this face to stl file;
4. Edit the title of the stl files (all the separated surfaces), then combine the stl files to a single stl;
5. Employ snappyHexMesh to create the grid.
An alternative way is to use Blender to create the geometry, then open in EnGrid, then follow the step 2~5 as above
1. Create geometry using Freecad and exported as stl file;
2. Import the stl file to EnGrid, define surfaces, view the boundary code by name, then save each surface as a vtu file;
3. Open each vtu file to EnGrid, then export this face to stl file;
4. Edit the title of the stl files (all the separated surfaces), then combine the stl files to a single stl;
5. Employ snappyHexMesh to create the grid.
An alternative way is to use Blender to create the geometry, then open in EnGrid, then follow the step 2~5 as above
2012年4月6日星期五
snappyHexMesh for OpenFOAM.
To generate a mesh within a domain defined by a stl file, we can take the following steps:
1. Create the geometry in SALOME, then export the faces into individual stl files.
2. Edit the stl files according to the motorBike case in the tutorial, combine them into a single stl file, and then put it in the folder 'constant/triSurface'.
3. Create the blockMeshDict and leave the patches to be empty, and run blockMesh.
4. Put decomposeParDict and snappyHexMeshDict into the folder 'system', edit snappyHexMeshDict according the motorBike tutorial.
5. Run snappyHexMesh and the mesh will be ready for OpenFOAM.
1. Create the geometry in SALOME, then export the faces into individual stl files.
2. Edit the stl files according to the motorBike case in the tutorial, combine them into a single stl file, and then put it in the folder 'constant/triSurface'.
3. Create the blockMeshDict and leave the patches to be empty, and run blockMesh.
4. Put decomposeParDict and snappyHexMeshDict into the folder 'system', edit snappyHexMeshDict according the motorBike tutorial.
5. Run snappyHexMesh and the mesh will be ready for OpenFOAM.
2012年4月5日星期四
Mesh generation using SALOME
I found the information from the internet.
STEP1 Create groups of faces for all patches (undefined surfaces will became in OpenFOAM as defaultFaces patch). For example, for internal simulation, we need 3 groups: inlet, outlet and walls.
STEP2 Mesh geometry.
STEP3 Create group of faces for mesh. This is done by using Create group command in SMESH module and selecting checkbox faces. In the appeared dialog box we must enter name for group (or patch in OpenFOAM), e.g., inlet, outlet, walls. Then, we must select Group using geometry option and click on interesting group in tree view of meshed solid.
STEP4 Export your mesh to I-DEAS format file (filename.unv). This file should be saved to the root of OpenFOAM case (where directories 0, constant, system).
STEP5 Run utility ideasUnvToFoam. For example, if we are using terminal in case root, we should type:
STEP6 Check mesh. run:
STEP7 If checkMesh reports no error, change dimensions. To convert from mm to m, we must type
STEP8 Change physical boundaries: enter file constant/polyMesh/boundaries and edit entries according to your case
STEP1 Create groups of faces for all patches (undefined surfaces will became in OpenFOAM as defaultFaces patch). For example, for internal simulation, we need 3 groups: inlet, outlet and walls.
STEP2 Mesh geometry.
STEP3 Create group of faces for mesh. This is done by using Create group command in SMESH module and selecting checkbox faces. In the appeared dialog box we must enter name for group (or patch in OpenFOAM), e.g., inlet, outlet, walls. Then, we must select Group using geometry option and click on interesting group in tree view of meshed solid.
STEP4 Export your mesh to I-DEAS format file (filename.unv). This file should be saved to the root of OpenFOAM case (where directories 0, constant, system).
STEP5 Run utility ideasUnvToFoam. For example, if we are using terminal in case root, we should type:
Code:
ideasUnvToFoam filename.unv
Code:
checkMesh
Code:
transformPoints -scale '(0.001 0.001 0.001)'
2012年3月27日星期二
3 Steps to Perform SSH Login Without Password Using ssh-keygen & ssh-copy-id
1. ssh-keygen -t rsa
## will generate id_rsa and id_rsa in ~/.ssh folder
2. ssh-copy-id -i ~/.ssh/id_rsa.pub remote_server
## copy the public key to the remote server
3. ssh remote_server
## check if it runs correctly
## will generate id_rsa and id_rsa in ~/.ssh folder
2. ssh-copy-id -i ~/.ssh/id_rsa.pub remote_server
## copy the public key to the remote server
3. ssh remote_server
## check if it runs correctly
2012年3月8日星期四
Changing PDF Metadata on Linux
Recently, I found something in pdf title was really annoying. I decided to find out a way to change it and some other information. I came to a program called PDFTK. The first thing we need do is to extract the pdf information:
Then edit info.txt to like the following:
Finally, update the pdf information
pdftk example.pdf dump_data output info.txt
Then edit info.txt to like the following:
InfoKey: Title
InfoValue: New
InfoKey: Author
InfoValue: zhanlu
InfoKey: Subject
InfoValue: changed
Finally, update the pdf information
pdftk example.pdf update_info info.txt output new.pdf
2012年2月16日星期四
Shrink eps size under Linux
When generate some pdf files using Inksape, sometimes it ends up a large file. However, you can follow some steps to reduce the size:
1. gs -r300 -dEPSCrop -dTextAlphaBits=4 -sDEVICE=png16m -sOutputFile=fig-reduce.pdf -dBATCH -dNOPAUSE fig.eps
2. convert fig-reduce.pdf fig-new.eps
3. import the fig-new.eps to Inkscape again, and save as fig-new.pdf.
The final file will be much smaller than the original one.
1. gs -r300 -dEPSCrop -dTextAlphaBits=4 -sDEVICE=png16m -sOutputFile=fig-reduce.pdf -dBATCH -dNOPAUSE fig.eps
2. convert fig-reduce.pdf fig-new.eps
3. import the fig-new.eps to Inkscape again, and save as fig-new.pdf.
The final file will be much smaller than the original one.
订阅:
博文 (Atom)