Author |
Message |
Philip (riche)
Member Username: riche
Post Number: 6 Registered: 06-2006
| Posted on Thursday, August 03, 2006 - 04:13 pm: | |
Hello every one, I hope that someone know the same thing ''Transfermesh'' in Flex Pde 2.20d 3D. Two files below work very well with version 5.0.7 but not with version 2.20. I am seen in Help and find that there isn't command ''Transfermesh''in 2.20. But what is the same idea to import the mesh in another application in version 2.20? Thank you so much for your attention. Mai { MESH_OUT.PDE } { This example uses a modification of the sample problem HEATBDRY.PDE to illustrate the use of the TRANSFERMESH output function. Both the Temperatures calculated here and the final mesh structure are transferred as input to the stress calculation MESH_IN.PDE } title "Test TRANSFERMESH output" Variables Temp definitions K = 1 source = 4 Tzero = 0 flux = -K*grad(Temp) equations div(K*grad(Temp)) + source = 0 boundaries Region 1 start "OUTER" (0,0) natural(Temp)=0 line to(1,0) natural(Temp)=0 arc (center=0,0) to (0,1) natural(Temp)=0 line to close start "INNER" (0.4,0.2) natural(Temp)=Tzero-Temp arc (center=0.4,0.4) to (0.6,0.4) to (0.4,0.6) to (0.2,0.4) to close monitors contour(Temp) plots grid(x,y) contour(Temp) surface(Temp) vector(-K*dx(Temp),-K*dy(Temp)) as "Heat Flow" contour(source) elevation(normal(flux)) on "outer" range(-0.08,0.08) report(bintegral(normal(flux),"outer")) as "bintegral" elevation(normal(flux)) on "inner" range(1.95,2.3) report(bintegral(normal(flux),"inner")) as "bintegral" { HERE IS THE MESH TRANSFER OUTPUT COMMAND: } transfer(Temp) file="transferm.dat" { MESH_IN.PDE } { This problem demonstrates the use of the TRANSFERMESH facility to import both data and mesh structure from MESHOUT.PDE. MESH_OUT.PDE must be run before running this problem. } Title 'Testing the TRANSFERMESH statement' select painted { paint all contour plots } variables U V definitions nu = 0.3 { define Poisson's Ratio } E = 21 { Young's Modulus x 10**-11 } G = E/(1-nu**2) C11 = G C12 = G*nu C22 = G C33 = G*(1-nu)/2 alpha = 1e-3 b = G*alpha*(1+nu) { HERE IS THE TRANSFERMESH INPUT FUNCTION: } transfermesh('transferm.dat',Temp) Sxx = C11*dx(U) + C12*dy(V) - b*Temp Syy = C12*dx(U) + C22*dy(V) - b*temp Sxy = C33*(dy(U) + dx(V)) initial values U = 0 V = 0 equations U: dx[Sxx] + dy(Sxy) = 0 V: dy[Syy] + dx(Sxy) = 0 boundaries Region 1 start "OUTER" (0,0) natural(U)=0 value(V)=0 { no y-motion on x-axis } line to(1,0) natural(U)=0 natural(V)=0 { free outer boundary } arc (center=0,0) to (0,1) value(U)=0 natural(V)=0 { no x-motion on y-axis } line to close natural(U)=0 natural(V)=0 { free inner boundary } start "INNER" (0.4,0.2) arc (center=0.4,0.4) to (0.6,0.4) to (0.4,0.6) to (0.2,0.4) to close monitors grid(x+100*U,y+100*V) plots contour(Temp) grid(x+100*U,y+100*V) vector(U,V) as "Displacement" contour(U) as "X-Displacement" contour(V) as "Y-Displacement" contour(Sxx) as "X-Stress" contour(Syy) as "Y-Stress" surface(Sxx) as "X-Stress" surface(Syy) as "Y-Stress" |
Robert G. Nelson (rgnelson)
Moderator Username: rgnelson
Post Number: 667 Registered: 06-2003
| Posted on Thursday, August 03, 2006 - 06:53 pm: | |
The TRANSFERMESH facility for mesh transfer was introduced in FlexPDE version 3.01 in January, 2002. It is not supported in version 2.
|
Philip (riche)
Member Username: riche
Post Number: 7 Registered: 06-2006
| Posted on Friday, August 04, 2006 - 11:05 am: | |
Thank you Dr. Nelson, But could I retain and import the same mesh for another application in version 2 ? In which way ? Best Regard Mai |
Robert G. Nelson (rgnelson)
Moderator Username: rgnelson
Post Number: 670 Registered: 06-2003
| Posted on Friday, August 04, 2006 - 03:48 pm: | |
FlexPDE version 2 does not have any mesh import facility. You could export a linearized version of the version 2 mesh (ie, simplex tetrahedra) to another program using the TECPLOT output format. |
|