Path: blob/devel/ElmerGUI/netgen/libsrc/meshing/hpref_trig.hpp
3206 views
12// HP_TRIG3int reftrig_splitedges[][3] =4{5{ 0, 0, 0 }6};7HPREF_ELEMENT_TYPE reftrig_newelstypes[] =8{9HP_TRIG,10HP_NONE,11};12int reftrig_newels[][8] =13{14{ 1, 2, 3 },15};16HPRef_Struct reftrig =17{18HP_TRIG,19reftrig_splitedges,200, 0,21reftrig_newelstypes,22reftrig_newels23};24252627// HP_TRIG_SINGCORNER28int reftrig_singcorner_splitedges[][3] =29{30{ 1, 2, 4 },31{ 1, 3, 5 },32{ 0, 0, 0 }33};34HPREF_ELEMENT_TYPE reftrig_singcorner_newelstypes[] =35{36HP_TRIG_SINGCORNER,37HP_QUAD,38HP_NONE,39};40int reftrig_singcorner_newels[][8] =41{42{ 1, 4, 5 },43{ 2, 3, 5, 4 },44};45HPRef_Struct reftrig_singcorner =46{47HP_TRIG,48reftrig_singcorner_splitedges,490, 0,50reftrig_singcorner_newelstypes,51reftrig_singcorner_newels52};535455/*56// HP_TRIG_SINGCORNER, trigs only57int reftrig_singcorner_splitedges[][3] =58{59{ 1, 2, 4 },60{ 1, 3, 5 },61{ 0, 0, 0 }62};63HPREF_ELEMENT_TYPE reftrig_singcorner_newelstypes[] =64{65HP_TRIG_SINGCORNER,66HP_TRIG,67HP_TRIG,68HP_NONE,69};70int reftrig_singcorner_newels[][8] =71{72{ 1, 4, 5 },73{ 4, 2, 5 },74{ 5, 2, 3 },75};76HPRef_Struct reftrig_singcorner =77{78HP_TRIG,79reftrig_singcorner_splitedges,800, 0,81reftrig_singcorner_newelstypes,82reftrig_singcorner_newels83};84*/858687888990// HP_TRIG_SINGCORNER1291int reftrig_singcorner12_splitedges[][3] =92{93{ 1, 2, 4 },94{ 1, 3, 5 },95{ 2, 1, 6 },96{ 2, 3, 7 },97{ 0, 0, 0 }98};99HPREF_ELEMENT_TYPE reftrig_singcorner12_newelstypes[] =100{101HP_TRIG_SINGCORNER,102HP_TRIG_SINGCORNER,103HP_QUAD,104HP_TRIG,105HP_NONE,106};107int reftrig_singcorner12_newels[][8] =108{109{ 1, 4, 5 },110{ 2, 7, 6 },111{ 4, 6, 7, 5 },112{ 5, 7, 3 },113};114HPRef_Struct reftrig_singcorner12 =115{116HP_TRIG,117reftrig_singcorner12_splitedges,1180, 0,119reftrig_singcorner12_newelstypes,120reftrig_singcorner12_newels121};122123124125126// HP_TRIG_SINGCORNER123_2D127int reftrig_singcorner123_2D_splitedges[][3] =128{129{ 1, 2, 4 },130{ 1, 3, 5 },131{ 2, 1, 6 },132{ 2, 3, 7 },133{ 3, 1, 8 },134{ 3, 2, 9 },135{ 0, 0, 0 }136};137HPREF_ELEMENT_TYPE reftrig_singcorner123_2D_newelstypes[] =138{139HP_TRIG_SINGCORNER,140HP_TRIG_SINGCORNER,141HP_TRIG_SINGCORNER,142HP_QUAD,143HP_QUAD,144HP_NONE,145};146int reftrig_singcorner123_2D_newels[][8] =147{148{ 1, 4, 5 },149{ 2, 7, 6 },150{ 3, 8, 9 },151{ 4, 6, 8, 5 },152{ 6, 7, 9, 8 },153};154HPRef_Struct reftrig_singcorner123_2D =155{156HP_TRIG,157reftrig_singcorner123_2D_splitedges,1580, 0,159reftrig_singcorner123_2D_newelstypes,160reftrig_singcorner123_2D_newels161};162163164165166167168// HP_TRIG_SINGCORNER123169int reftrig_singcorner123_splitedges[][3] =170{171{ 1, 2, 4 },172{ 1, 3, 5 },173{ 2, 1, 6 },174{ 2, 3, 7 },175{ 3, 1, 8 },176{ 3, 2, 9 },177{ 0, 0, 0 }178};179180int reftrig_singcorner123_splitfaces[][4] =181{182{ 1, 2, 3, 10 },183{ 2, 3, 1, 11 },184{ 3, 1, 2, 12 },185{ 0, 0, 0, 0 }186};187HPREF_ELEMENT_TYPE reftrig_singcorner123_newelstypes[] =188{189HP_DUMMY_QUAD_SINGCORNER,190HP_DUMMY_QUAD_SINGCORNER,191HP_DUMMY_QUAD_SINGCORNER,192// HP_TRIG_SINGCORNER,193// HP_TRIG,194// HP_TRIG_SINGCORNER,195// HP_TRIG,196// HP_TRIG_SINGCORNER,197// HP_TRIG,198HP_QUAD,199HP_QUAD,200HP_QUAD,201HP_TRIG,202HP_NONE,203};204int reftrig_singcorner123_newels[][8] =205{206{ 1, 4, 10, 5 },207{ 2, 7, 11, 6 },208{ 3, 8, 12, 9 },209// { 1, 4, 5 },210// { 5, 4, 10 },211// { 2, 7, 6 },212// { 6, 7, 11 },213// { 3, 8, 9 },214// { 8, 12, 9 },215{ 4, 6, 11, 10 },216{ 7, 9, 12, 11 },217{ 8, 5, 10, 12 },218{ 10, 11, 12 },219};220HPRef_Struct reftrig_singcorner123 =221{222HP_TRIG,223reftrig_singcorner123_splitedges,224reftrig_singcorner123_splitfaces,2250,226reftrig_singcorner123_newelstypes,227reftrig_singcorner123_newels228};229230// HP_TRIG_SINGEDGE231int reftrig_singedge_splitedges[][3] =232{233{ 2, 3, 4 },234{ 1, 3, 5 },235{ 0, 0, 0 }236};237HPREF_ELEMENT_TYPE reftrig_singedge_newelstypes[] =238{239HP_TRIG,240HP_QUAD_SINGEDGE,241HP_NONE,242};243int reftrig_singedge_newels[][8] =244{245{ 4, 3, 5 },246{ 1, 2, 4, 5 },247};248HPRef_Struct reftrig_singedge =249{250HP_TRIG,251reftrig_singedge_splitedges,2520, 0,253reftrig_singedge_newelstypes,254reftrig_singedge_newels255};256257258259260261262// HP_TRIG_SINGEDGECORNER1263int reftrig_singedgecorner1_splitedges[][3] =264{265{ 1, 2, 6 },266{ 1, 3, 5 },267{ 2, 3, 4 },268{ 0, 0, 0 }269};270HPREF_ELEMENT_TYPE reftrig_singedgecorner1_newelstypes[] =271{272HP_TRIG_SINGEDGECORNER1,273HP_QUAD_SINGEDGE,274HP_TRIG,275HP_NONE,276};277int reftrig_singedgecorner1_newels[][8] =278{279{ 1, 6, 5 },280{ 6, 2, 4, 5 },281{ 5, 4, 3 },282};283HPRef_Struct reftrig_singedgecorner1 =284{285HP_TRIG,286reftrig_singedgecorner1_splitedges,2870, 0,288reftrig_singedgecorner1_newelstypes,289reftrig_singedgecorner1_newels290};291292293294295296297298299// HP_TRIG_SINGEDGECORNER2300int reftrig_singedgecorner2_splitedges[][3] =301{302{ 2, 1, 6 },303{ 1, 3, 5 },304{ 2, 3, 4 },305{ 0, 0, 0 }306};307HPREF_ELEMENT_TYPE reftrig_singedgecorner2_newelstypes[] =308{309HP_TRIG_SINGEDGECORNER2,310HP_QUAD_SINGEDGE,311HP_TRIG,312HP_NONE,313};314int reftrig_singedgecorner2_newels[][8] =315{316{ 6, 2, 4},317{ 1, 6, 4, 5 },318{ 5, 4, 3 },319};320HPRef_Struct reftrig_singedgecorner2 =321{322HP_TRIG,323reftrig_singedgecorner2_splitedges,3240, 0,325reftrig_singedgecorner2_newelstypes,326reftrig_singedgecorner2_newels327};328329330331332// HP_TRIG_SINGEDGECORNER12333int reftrig_singedgecorner12_splitedges[][3] =334{335{ 1, 2, 4 },336{ 1, 3, 5 },337{ 2, 1, 6 },338{ 2, 3, 7 },339{ 0, 0, 0 }340};341HPREF_ELEMENT_TYPE reftrig_singedgecorner12_newelstypes[] =342{343HP_TRIG_SINGEDGECORNER1,344HP_TRIG_SINGEDGECORNER2,345HP_QUAD_SINGEDGE,346HP_TRIG,347HP_NONE,348};349int reftrig_singedgecorner12_newels[][8] =350{351{ 1, 4, 5 },352{ 6, 2, 7 },353{ 4, 6, 7, 5 },354{ 5, 7, 3 },355};356HPRef_Struct reftrig_singedgecorner12 =357{358HP_TRIG,359reftrig_singedgecorner12_splitedges,3600, 0,361reftrig_singedgecorner12_newelstypes,362reftrig_singedgecorner12_newels363};364365366367368369370371// HP_TRIG_SINGEDGECORNER3372int reftrig_singedgecorner3_splitedges[][3] =373{374{ 1, 3, 4 },375{ 3, 1, 5 },376{ 2, 3, 6 },377{ 3, 2, 7 },378{ 0, 0, 0 }379};380HPREF_ELEMENT_TYPE reftrig_singedgecorner3_newelstypes[] =381{382HP_QUAD_SINGEDGE,383HP_QUAD,384HP_TRIG_SINGCORNER,385HP_NONE,386};387int reftrig_singedgecorner3_newels[][8] =388{389{ 1, 2, 6, 4 },390{ 4, 6, 7, 5 },391{ 3, 5, 7 },392};393HPRef_Struct reftrig_singedgecorner3 =394{395HP_TRIG,396reftrig_singedgecorner3_splitedges,3970, 0,398reftrig_singedgecorner3_newelstypes,399reftrig_singedgecorner3_newels400};401402403404405// HP_TRIG_SINGEDGECORNER13406int reftrig_singedgecorner13_splitedges[][3] =407{408{ 1, 2, 4 },409{ 1, 3, 5 },410{ 2, 3, 6 },411{ 3, 1, 7 },412{ 3, 2, 8 },413{ 0, 0, 0 }414};415HPREF_ELEMENT_TYPE reftrig_singedgecorner13_newelstypes[] =416{417HP_TRIG_SINGEDGECORNER1,418HP_QUAD_SINGEDGE,419HP_QUAD,420HP_TRIG_SINGCORNER,421HP_NONE,422};423int reftrig_singedgecorner13_newels[][8] =424{425{ 1, 4, 5 },426{ 4, 2, 6, 5 },427{ 5, 6, 8, 7 },428{ 3, 7, 8 },429};430HPRef_Struct reftrig_singedgecorner13 =431{432HP_TRIG,433reftrig_singedgecorner13_splitedges,4340, 0,435reftrig_singedgecorner13_newelstypes,436reftrig_singedgecorner13_newels437};438439440441442443// HP_TRIG_SINGEDGECORNER23444int reftrig_singedgecorner23_splitedges[][3] =445{446{ 1, 3, 4 },447{ 2, 1, 5 },448{ 2, 3, 6 },449{ 3, 1, 7 },450{ 3, 2, 8 },451{ 0, 0, 0 }452};453HPREF_ELEMENT_TYPE reftrig_singedgecorner23_newelstypes[] =454{455HP_TRIG_SINGEDGECORNER2,456HP_QUAD_SINGEDGE,457HP_QUAD,458HP_TRIG_SINGCORNER,459HP_NONE,460};461int reftrig_singedgecorner23_newels[][8] =462{463{ 5, 2, 6 },464{ 1, 5, 6, 4 },465{ 4, 6, 8, 7 },466{ 3, 7, 8 },467};468HPRef_Struct reftrig_singedgecorner23 =469{470HP_TRIG,471reftrig_singedgecorner23_splitedges,4720, 0,473reftrig_singedgecorner23_newelstypes,474reftrig_singedgecorner23_newels475};476477478479// HP_TRIG_SINGEDGECORNER123480int reftrig_singedgecorner123_splitedges[][3] =481{482{ 1, 2, 4 },483{ 1, 3, 5 },484{ 2, 1, 6 },485{ 2, 3, 7 },486{ 3, 1, 8 },487{ 3, 2, 9 },488{ 0, 0, 0 }489};490HPREF_ELEMENT_TYPE reftrig_singedgecorner123_newelstypes[] =491{492HP_TRIG_SINGEDGECORNER1,493HP_TRIG_SINGEDGECORNER2,494HP_QUAD_SINGEDGE,495HP_QUAD,496HP_TRIG_SINGCORNER,497HP_NONE,498};499int reftrig_singedgecorner123_newels[][8] =500{501{ 1, 4, 5 },502{ 6, 2, 7 },503{ 4, 6, 7, 5 },504{ 5, 7, 9, 8 },505{ 3, 8, 9 },506};507HPRef_Struct reftrig_singedgecorner123 =508{509HP_TRIG,510reftrig_singedgecorner123_splitedges,5110, 0,512reftrig_singedgecorner123_newelstypes,513reftrig_singedgecorner123_newels514};515516// HP_TRIG_SINGEDGES517int reftrig_singedges_splitedges[][3] =518{519{ 1, 2, 4 },520{ 1, 3, 5 },521{ 2, 3, 6 },522{ 3, 2, 7 },523{ 0, 0, 0 }524};525int reftrig_singedges_splitfaces[][4] =526{527{ 1, 2, 3, 8 },528{ 0, 0, 0, 0 }529};530531HPREF_ELEMENT_TYPE reftrig_singedges_newelstypes[] =532{533// HP_QUAD_2E,534HP_TRIG_SINGEDGECORNER1,535HP_TRIG_SINGEDGECORNER2,536HP_QUAD_SINGEDGE,537HP_QUAD_SINGEDGE,538HP_TRIG,539HP_NONE,540};541int reftrig_singedges_newels[][8] =542{543// { 1, 4, 8, 5 },544{ 1, 4, 8 },545{ 5, 1, 8 },546{ 4, 2, 6, 8 },547{ 3, 5, 8, 7 },548{ 6, 7, 8 },549};550HPRef_Struct reftrig_singedges =551{552HP_TRIG,553reftrig_singedges_splitedges,554reftrig_singedges_splitfaces,5550,556reftrig_singedges_newelstypes,557reftrig_singedges_newels558};559560561562563564565566567// HP_TRIG_SINGEDGES2568int reftrig_singedges2_splitedges[][3] =569{570{ 1, 2, 4 },571{ 1, 3, 5 },572{ 2, 1, 6 },573{ 2, 3, 7 },574{ 3, 2, 8 },575{ 0, 0, 0 }576};577int reftrig_singedges2_splitfaces[][4] =578{579{ 1, 2, 3, 9 },580{ 0, 0, 0, 0 }581};582583HPREF_ELEMENT_TYPE reftrig_singedges2_newelstypes[] =584{585// HP_QUAD_2E,586HP_TRIG_SINGEDGECORNER1,587HP_TRIG_SINGEDGECORNER2,588HP_QUAD_SINGEDGE,589HP_QUAD_SINGEDGE,590HP_TRIG_SINGEDGECORNER2,591HP_TRIG,592HP_NONE,593};594int reftrig_singedges2_newels[][8] =595{596// { 1, 4, 9, 5 },597{ 1, 4, 9 },598{ 5, 1, 9 },599{ 4, 6, 7, 9 },600{ 3, 5, 9, 8 },601{ 6, 2, 7 },602{ 7, 8, 9 },603};604HPRef_Struct reftrig_singedges2 =605{606HP_TRIG,607reftrig_singedges2_splitedges,608reftrig_singedges2_splitfaces,6090,610reftrig_singedges2_newelstypes,611reftrig_singedges2_newels612};613614615616617// HP_TRIG_SINGEDGES3618int reftrig_singedges3_splitedges[][3] =619{620{ 1, 2, 4 },621{ 1, 3, 5 },622{ 2, 3, 6 },623{ 3, 1, 7 },624{ 3, 2, 8 },625{ 0, 0, 0 }626};627int reftrig_singedges3_splitfaces[][4] =628{629{ 1, 2, 3, 9 },630{ 0, 0, 0, 0 }631};632633HPREF_ELEMENT_TYPE reftrig_singedges3_newelstypes[] =634{635// HP_QUAD_2E,636HP_TRIG_SINGEDGECORNER1,637HP_TRIG_SINGEDGECORNER2,638HP_QUAD_SINGEDGE,639HP_QUAD_SINGEDGE,640HP_TRIG_SINGEDGECORNER1,641HP_TRIG,642HP_NONE,643};644int reftrig_singedges3_newels[][8] =645{646// { 1, 4, 9, 5 },647{ 1, 4, 9 },648{ 5, 1, 9 },649{ 4, 2, 6, 9 },650{ 7, 5, 9, 8 },651{ 3, 7, 8 },652{ 6, 8, 9 },653};654HPRef_Struct reftrig_singedges3 =655{656HP_TRIG,657reftrig_singedges3_splitedges,658reftrig_singedges3_splitfaces,6590,660reftrig_singedges3_newelstypes,661reftrig_singedges3_newels662};663664665666667668669// HP_TRIG_SINGEDGES23670int reftrig_singedges23_splitedges[][3] =671{672{ 1, 2, 4 },673{ 1, 3, 5 },674{ 2, 1, 6 },675{ 2, 3, 7 },676{ 3, 1, 8 },677{ 3, 2, 9 },678{ 0, 0, 0 }679};680int reftrig_singedges23_splitfaces[][4] =681{682{ 1, 2, 3, 10 },683{ 0, 0, 0, 0 }684};685686HPREF_ELEMENT_TYPE reftrig_singedges23_newelstypes[] =687{688// HP_QUAD_2E,689HP_TRIG_SINGEDGECORNER1,690HP_TRIG_SINGEDGECORNER2,691692HP_QUAD_SINGEDGE,693HP_QUAD_SINGEDGE,694HP_TRIG_SINGEDGECORNER2,695HP_TRIG_SINGEDGECORNER1,696HP_TRIG,697HP_NONE,698};699int reftrig_singedges23_newels[][8] =700{701// { 1, 4, 10, 5 },702{ 1 , 4, 10 },703{ 5, 1, 10 },704{ 4, 6, 7, 10 },705{ 8, 5, 10, 9 },706{ 6, 2, 7 },707{ 3, 8, 9 },708{ 7, 9, 10 },709};710HPRef_Struct reftrig_singedges23 =711{712HP_TRIG,713reftrig_singedges23_splitedges,714reftrig_singedges23_splitfaces,7150,716reftrig_singedges23_newelstypes,717reftrig_singedges23_newels718};719720721// HP_TRIG_3SINGEDGES722int reftrig_3singedges_splitedges[][3] =723{724{ 1, 2, 4 },725{ 2, 1, 5 },726{ 2, 3, 6 },727{ 3, 2, 7 },728{ 3, 1, 8 },729{ 1, 3, 9 },730{ 0, 0, 0 }731};732int reftrig_3singedges_splitfaces[][4] =733{734{ 1, 2, 3, 10 },735{ 2, 3, 1, 11 },736{ 3, 1, 2, 12 },737{ 0, 0, 0, 0 }738};739740HPREF_ELEMENT_TYPE reftrig_3singedges_newelstypes[] =741{742HP_TRIG,743HP_QUAD_SINGEDGE,744HP_QUAD_SINGEDGE,745HP_QUAD_SINGEDGE,746HP_TRIG_SINGEDGECORNER1,747HP_TRIG_SINGEDGECORNER2,748HP_TRIG_SINGEDGECORNER1,749HP_TRIG_SINGEDGECORNER2,750HP_TRIG_SINGEDGECORNER1,751HP_TRIG_SINGEDGECORNER2,752HP_NONE,753};754int reftrig_3singedges_newels[][8] =755{756{ 10, 11, 12 },757{ 4, 5, 11, 10 },758{ 6, 7, 12, 11 },759{ 8, 9, 10, 12 },760{ 1, 4, 10 },761{ 9, 1, 10 },762{ 2, 6, 11 },763{ 5, 2, 11 },764{ 3, 8, 12 },765{ 7, 3, 12 },766};767HPRef_Struct reftrig_3singedges =768{769HP_TRIG,770reftrig_3singedges_splitedges,771reftrig_3singedges_splitfaces,7720,773reftrig_3singedges_newelstypes,774reftrig_3singedges_newels775};776777778