https://github.com/codelenz/lfilter.jl
Spatial filter with projection for Topology Optimization of continuum structures
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (2.9%) to scientific vocabulary
Repository
Spatial filter with projection for Topology Optimization of continuum structures
Basic Info
- Host: GitHub
- Owner: CodeLenz
- License: mit
- Language: Julia
- Default Branch: main
- Size: 47.9 KB
Statistics
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
LFilter
Spatial filter with projection for Topology Optimization of continuum structures
```julia
using BMesh, LMesh, TMeshes using LFEM using LFilter
Create a 2D solid mesh
m = Simply_supported2D(10,10,:solid2D);
Create a filter with radius 0.3m
filter = Filter(m,0.3)
Create an input vector (zeros)
x = zeros(m.bmesh.ne)
Put an 1.0 in elements 54:56
x[54:56] .= 1.0
Filter
ρ = x2proj(x,filter)
Create a gmsh output file
name = "example.pos" Gmsh_init(name,m)
Export original (x) and filtered (ρ) fields
Gmshelementscalar(m,x,name,"Original") Gmshelementscalar(m,ρ,name,"Filtered")
It is also possible to fix some elements during the filtering/optimization
Lets set elements 1 and 100 to 1.0 and element 10 to 1E-3
m.options[:Fixed_elements]=[1 1.0 ; 100 1.0; 10 1E-3]
Create another filter with radius 0.3m
filter2 = Filter(m,0.3)
Filter
ρ2 = x2proj(x,filter2)
Export the new field
Gmshelementscalar(m,ρ2,name,"Filtered and fixed")
```
Owner
- Name: Eduardo Lenz
- Login: CodeLenz
- Kind: user
- Location: Joinville, Brazil
- Company: UDESC
- Repositories: 6
- Profile: https://github.com/CodeLenz
GitHub Events
Total
- Watch event: 1
Last Year
- Watch event: 1